aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/dwarf.exp
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-10-12 14:51:10 +0200
committerBruno Larsen <blarsen@redhat.com>2022-11-10 14:51:49 +0100
commit2acccd0a59af7a04e341d31f68b370486d5fc474 (patch)
tree6649f7bc51f6fe4871408bbd7cf0c8e20a4301f1 /gdb/testsuite/lib/dwarf.exp
parent1b377e4960438810a137aaedc1ff16a2e2114e9d (diff)
downloadgdb-2acccd0a59af7a04e341d31f68b370486d5fc474.zip
gdb-2acccd0a59af7a04e341d31f68b370486d5fc474.tar.gz
gdb-2acccd0a59af7a04e341d31f68b370486d5fc474.tar.bz2
gdb/testsuite: allowed for function_range to deal with mangled functions
When calling get_func_info inside a test case, it would cause failures if the function was printed using a C++ style mangled name. The current patch fixes this by allowing for mangled names along with the current rules. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/lib/dwarf.exp')
-rw-r--r--gdb/testsuite/lib/dwarf.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index b843b1a..9df8e7f 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -400,7 +400,7 @@ proc function_range { func src {options {debug}} } {
if { $func_length != 0 } {
set func_pattern "$func_pattern\\+$func_length"
}
- set test "x/2i $func+$func_length"
+ set test "with print asm-demangle on -- x/2i $func+$func_length"
gdb_test_multiple $test $test {
-re ".*($hex) <$func_pattern>:\[^\r\n\]+\r\n\[ \]+($hex).*\.\r\n$gdb_prompt $" {
set start $expect_out(1,string)