aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2011-05-24 12:01:22 +0000
committerPierre Muller <muller@sourceware.org>2011-05-24 12:01:22 +0000
commitee5683ab05022bd68d5200b74cf00def28785076 (patch)
tree68255f924268a75765c1a0b00b56eb2dd61a447e /gdb/testsuite/lib
parentc91c8c16124ce11be0ee4490a5d1606236fca1bb (diff)
downloadgdb-ee5683ab05022bd68d5200b74cf00def28785076.zip
gdb-ee5683ab05022bd68d5200b74cf00def28785076.tar.gz
gdb-ee5683ab05022bd68d5200b74cf00def28785076.tar.bz2
../commit.txt~
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 169ae1c..4f5b796 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3658,3 +3658,19 @@ proc core_find {binfile {deletefiles {}} {arg ""}} {
}
return $destcore
}
+
+# gdb_target_symbol_prefix_flags returns a string that can be added
+# to gdb_compile options to define SYMBOL_PREFIX macro value
+# symbol_prefix_flags returns a string that can be added
+# for targets that use underscore as symbol prefix.
+# TODO: find out automatically if the target needs this.
+
+proc gdb_target_symbol_prefix_flags {} {
+ if { [istarget "*-*-cygwin*"] || [istarget "i?86-*-mingw*"]
+ || [istarget "*-*-msdosdjgpp*"] || [istarget "*-*-go32*"] } {
+ return "additional_flags=-DSYMBOL_PREFIX=\"_\""
+ } else {
+ return ""
+ }
+}
+