* gdb.cp/namespace.exp: Add breakpoint tests for functions
starting with the global namespace.
This commit is contained in:
parent
5a75128f93
commit
0e4acfccb3
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-26 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
|
* gdb.cp/namespace.exp: Add breakpoint tests for functions
|
||||||
|
starting with the global namespace.
|
||||||
|
|
||||||
2012-03-23 Doug Evans <dje@google.com>
|
2012-03-23 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.
|
* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.
|
||||||
|
|
|
@ -138,6 +138,11 @@ gdb_test "print AAA::xyzq('x')" \
|
||||||
gdb_test "break AAA::xyzq" \
|
gdb_test "break AAA::xyzq" \
|
||||||
"Breakpoint.*at $hex: file.*namespace.cc, line 47\\."
|
"Breakpoint.*at $hex: file.*namespace.cc, line 47\\."
|
||||||
|
|
||||||
|
# Break on a function in the global namespace.
|
||||||
|
|
||||||
|
gdb_test "break ::ensureOtherRefs" \
|
||||||
|
"Breakpoint.*at $hex: file.*$srcfile1, line $decimal\\."
|
||||||
|
|
||||||
# Call a function in a nested namespace
|
# Call a function in a nested namespace
|
||||||
|
|
||||||
gdb_test "print 'BBB::CCC::xyzq'('x')" \
|
gdb_test "print 'BBB::CCC::xyzq'('x')" \
|
||||||
|
@ -153,6 +158,11 @@ gdb_test "print BBB::CCC::xyzq('x')" \
|
||||||
gdb_test "break BBB::CCC::xyzq" \
|
gdb_test "break BBB::CCC::xyzq" \
|
||||||
"Breakpoint.*at $hex: file.*namespace.cc, line 63\\."
|
"Breakpoint.*at $hex: file.*namespace.cc, line 63\\."
|
||||||
|
|
||||||
|
# Break on the same function, starting with the global namespace.
|
||||||
|
|
||||||
|
gdb_test "break ::BBB::CCC::xyzq" \
|
||||||
|
".*Breakpoint.*at $hex: file.*$srcfile, line 63\\."
|
||||||
|
|
||||||
# Print address of a function in a class in a namespace
|
# Print address of a function in a class in a namespace
|
||||||
|
|
||||||
gdb_test "print 'BBB::Class::xyzq'" \
|
gdb_test "print 'BBB::Class::xyzq'" \
|
||||||
|
|
Loading…
Reference in New Issue