summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/inferior-assert/TestInferiorAssert.py')
-rw-r--r--lldb/test/functionalities/inferior-assert/TestInferiorAssert.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
index 8f17a4e30d1..f8ed37249b9 100644
--- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
+++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
@@ -176,8 +176,11 @@ class AssertingInferiorTestCase(TestBase):
# of the function and in the next function. We also can't back the PC up
# because we don't know how much to back it up by on targets with opcodes
# that have differing sizes
- self.expect("disassemble -a %s" % frame.GetPC(),
- substrs = ['->'])
+ pc_backup_offset = 1
+ if frame.GetFrameID() == 0:
+ pc_backup_offset = 0
+ self.expect("disassemble -a %s" % (frame.GetPC() - pc_backup_offset),
+ substrs = ['<%s>:' % frame.GetFunctionName()])
def check_expr_in_main(self, thread):
depth = thread.GetNumFrames()
OpenPOWER on IntegriCloud