aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorGuinevere Larsen <blarsen@redhat.com>2024-07-23 14:36:20 -0300
committerGuinevere Larsen <blarsen@redhat.com>2024-09-17 17:18:47 -0300
commit4d91b7105653d39ef9c8507dd25ba426af4879e4 (patch)
treeb8602fe34ccfa7ca315b41247b3c0592bf08228b /gdb/python
parentbd26cd1810ce4296b228cd31d137a0b54e40c189 (diff)
downloadbinutils-4d91b7105653d39ef9c8507dd25ba426af4879e4.zip
binutils-4d91b7105653d39ef9c8507dd25ba426af4879e4.tar.gz
binutils-4d91b7105653d39ef9c8507dd25ba426af4879e4.tar.bz2
gdb/testsuite: fix gdb.mi/mi-var-cp.exp with clang
The inline tests in gdb.mi/mi-var-cp.cc were failing when using clang to run the test. This happened because inline tests want to step past the C statements and then run the TCL tests, but in mi-var-cp.cc the statement to be stepped past is "return s2.i;". Since clang links the epilogue information to the return statement, not the closing brace, single-stepping past return had us exiting the function - which made the expressions invalid. This commit fixes this by making the function have 2 C statements, and the return one be after all inline tests, so we know GDB won't leave the function before running the create_varobj tests. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions