summaryrefslogtreecommitdiff
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
commitb7952e8fb4c8e70d90c0ebb9b49724e6963a7aec (patch)
tree9c92f44270ab778f33c7b71ab40bd1520325ca9a
parent7ca0690c8667561394098d6e094338d8ac086a99 (diff)
downloadgdb-b7952e8fb4c8e70d90c0ebb9b49724e6963a7aec.tar.gz
fix obvious problem with compiler.c and compiler.cc: for xlc, used 'regsub',
but for get_compiler_info, line must start with 'set'.
-rw-r--r--gdb/testsuite/lib/compiler.c2
-rw-r--r--gdb/testsuite/lib/compiler.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c
index 58750413466..7160591a93c 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
diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc
index eea1df46949..60319007bc1 100644
--- a/gdb/testsuite/lib/compiler.cc
+++ b/gdb/testsuite/lib/compiler.cc
@@ -56,5 +56,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