Make sure to subtract one from the PC when doing the symbolication of stack frames when it isn't the zero'th frame.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156974 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/crashlog.py b/examples/python/crashlog.py
index 3204428..11e532a 100755
--- a/examples/python/crashlog.py
+++ b/examples/python/crashlog.py
@@ -556,7 +556,12 @@
                     #prev_frame_index = -1
                     for frame_idx, frame in enumerate(thread.frames):
                         disassemble = (this_thread_crashed or options.disassemble_all_threads) and frame_idx < options.disassemble_depth;
-                        symbolicated_frame_addresses = crash_log.symbolicate (frame.pc)
+                        if frame_idx == 0:
+                            symbolicated_frame_addresses = crash_log.symbolicate (frame.pc)
+                        else:
+                            # Any frame above frame zero and we have to subtract one to get the previous line entry
+                            symbolicated_frame_addresses = crash_log.symbolicate (frame.pc - 1)
+                        
                         if symbolicated_frame_addresses:
                             symbolicated_frame_address_idx = 0
                             for symbolicated_frame_address in symbolicated_frame_addresses: