diff options
author | Doug Evans <dje@google.com> | 2013-05-20 20:23:20 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-20 20:23:20 +0000 |
commit | e19d3afbf8ff364534b0be74980377113082d02f (patch) | |
tree | 3e8051de563dc5d83f36c6379673d32797143056 /gdb | |
parent | c127ec5867aa79e3dc9818b7203d84699a3a3ab7 (diff) | |
download | fsf-binutils-gdb-e19d3afbf8ff364534b0be74980377113082d02f.zip fsf-binutils-gdb-e19d3afbf8ff364534b0be74980377113082d02f.tar.gz fsf-binutils-gdb-e19d3afbf8ff364534b0be74980377113082d02f.tar.bz2 |
* gdb.base/maint.exp: Fix test for "mt expand-symtabs" to account for
-fdebug-types-section.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/maint.exp | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f944fc4..1c02b69 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-05-20 Doug Evans <dje@google.com> + + * gdb.base/maint.exp: Fix test for "mt expand-symtabs" to account for + -fdebug-types-section. + 2013-05-20 Joel Brobecker <brobecker@adacore.com> * gdb.ada/float_param: New testcase. diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp index 9609038..260818e 100644 --- a/gdb/testsuite/gdb.base/maint.exp +++ b/gdb/testsuite/gdb.base/maint.exp @@ -89,8 +89,11 @@ gdb_test "maint print registers" "Name.*Nr.*Rel.*Offset.*Size.*Type.*" gdb_test_no_output "mt set per on" "mt set per on for expand-symtabs" gdb_test_multiple "mt expand-symtabs $subdir/break\[.\]c$" \ "mt expand-symtabs" { - -re "#primary symtabs: 1 \\(\[+\]1\\),.*$gdb_prompt $" { - # This should expand exactly one (primary) symtab. + -re "#primary symtabs: (1|2) \\(\[+\](1|2)\\),.*$gdb_prompt $" { + # This should expand one or at most two primary symtabs. + # "Normally" it will expand just the one for break.c, but if the + # file is compiled with -fdebug-types-section then a second primary + # symtab for break.c will be created for any types. pass "mt expand-symtabs" } } |