Prevent appending "-g" after "-g3" to compile options in info-macros.exp.
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 22 Jan 2014 15:31:10 +0000 (15:31 +0000)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 22 Jan 2014 16:02:13 +0000 (17:02 +0100)
commit784667142320ce3cbd8c4542c147451e43fb30d4
tree8a35f1ff66ed35005ba9ea7dbad86a6612fb6a32
parent54bff650843cacd3c17a0afdb0fe32e15e1b65b0
Prevent appending "-g" after "-g3" to compile options in info-macros.exp.

When upstream gcc is given a command line with the "-g" option after
"-g3", it doesn't generate a ".debug_macro" section.  This is because
the last option wins, thus downgrading the debug level again.  Without
any macro debug information in the executable, info-macros.exp
obviously produces many failures.

Since the "-g" option is appended by DejaGnu's target_compile whenever
the "debug" option is set, the fix just removes that option.

gdb/testsuite/ChangeLog:
* gdb.base/info-macros.exp: Remove "debug" from the compile
options.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-macros.exp