aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/compiler.c
diff options
context:
space:
mode:
authorPaul Gilliam <pgilliam@us.ibm.com>2005-03-07 18:57:57 +0000
committerPaul Gilliam <pgilliam@us.ibm.com>2005-03-07 18:57:57 +0000
commitc4d88f87b7b2930e52f48e9ee0edcdfe2f18c904 (patch)
treef1916bab6e6686ad58914fa2ef9aeac976d360bf /gdb/testsuite/lib/compiler.c
parent41c9e29df596ed2b6acd8aac840600b09a4b390f (diff)
downloadgdb-c4d88f87b7b2930e52f48e9ee0edcdfe2f18c904.zip
gdb-c4d88f87b7b2930e52f48e9ee0edcdfe2f18c904.tar.gz
gdb-c4d88f87b7b2930e52f48e9ee0edcdfe2f18c904.tar.bz2
fix obvious problem with compiler.c and compiler.cc: for xlc, used 'regsub',
but for get_compiler_info, line must start with 'set'.
Diffstat (limited to 'gdb/testsuite/lib/compiler.c')
-rw-r--r--gdb/testsuite/lib/compiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c
index 5875041..7160591 100644
--- a/gdb/testsuite/lib/compiler.c
+++ b/gdb/testsuite/lib/compiler.c
@@ -68,5 +68,5 @@ set compiler_info [join {hpacc __HP_aCC} -]
#if defined (__xlc__)
/* IBM'x xlc compiler. NOTE: __xlc__ expands to a double quoted string of four
numbers seperated by '.'s: currently "7.0.0.0" */
-regsub -all {\.} [join {xlc __xlc__} -] - compiler_info
+set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#endif