* [ob/pushed] gdb.base/break-on-linker-gcd-function.exp: Remove unused variable
@ 2020-12-07 20:30 Pedro Alves
0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2020-12-07 20:30 UTC (permalink / raw)
To: gdb-patches
Commit:
commit 4d142eaa28c64565b58fcdb5a83377ec9b778cb1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
AuthorDate: Tue Jul 2 20:06:12 2013 +0000
gdb/testsuite/
* gdb.base/break-on-linker-gcd-function.exp: Replace
prepare_for_testing by build_executable_from_specs and clean_restart.
...
did:
set additional_flags {-ffunction-sections -Wl,--gc-sections}
-if {[prepare_for_testing $testfile.exp $testfile $srcfile \
- [list debug c++ additional_flags=$additional_flags]]} {
+if {[build_executable_from_specs $testfile.exp $testfile \
+ {c++ additional_flags=-Wl,--gc-sections} \
+ $srcfile {debug c++ additional_flags=-ffunction-sections}]} {
and that left the additional_flags variable behind. Remove it.
gdb/testsuite/ChangeLog:
* gdb.base/break-on-linker-gcd-function.exp: Remove unused
'additional_flags' variable.
---
gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp | 1 -
1 file changed, 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
index 26df46f1737..de63441bdd4 100644
--- a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
+++ b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
@@ -31,7 +31,6 @@ if [get_compiler_info "c++"] {
return -1
}
-set additional_flags {-ffunction-sections -Wl,--gc-sections}
if {[build_executable_from_specs $testfile.exp $testfile \
{c++ additional_flags=-Wl,--gc-sections} \
$srcfile {debug c++ additional_flags=-ffunction-sections}]} {
base-commit: 846141822b5d8f6ecc549ce98be474522b95d9cb
--
2.14.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-07 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 20:30 [ob/pushed] gdb.base/break-on-linker-gcd-function.exp: Remove unused variable Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).