aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-02-17 23:07:24 +0000
committerPedro Alves <palves@redhat.com>2010-02-17 23:07:24 +0000
commit061b528517208800e3f1adc721c40421fc360f37 (patch)
treed3fd703b1a6517df5890dff8d2dce70bb587343f /gdb
parent51e139990ee36293871e2d3080c4163098cb0201 (diff)
downloadgdb-061b528517208800e3f1adc721c40421fc360f37.zip
gdb-061b528517208800e3f1adc721c40421fc360f37.tar.gz
gdb-061b528517208800e3f1adc721c40421fc360f37.tar.bz2
* lib/gdb.exp (build_id_debug_filename_get): Don't assume new
`regsub' syntax available.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e2594c6..518118c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2010-02-17 Pedro Alves <pedro@codesourcery.com>
+ * lib/gdb.exp (build_id_debug_filename_get): Don't assume new
+ `regsub' syntax available.
+
+2010-02-17 Pedro Alves <pedro@codesourcery.com>
+
* gdb.base/shmain.c (main): Remove printf call.
* gdb.base/sizeof.c (main): Cast return of sizeof to int.
* gdb.base/unload.c (main): Make format of fprintf a string
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index a42d551..627941d 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2830,7 +2830,7 @@ proc build_id_debug_filename_get { exec } {
}
# Convert it to hex.
binary scan $data H* data
- set data [regsub {^..} $data {\0/}]
+ regsub {^..} $data {\0/} data
return ".build-id/${data}.debug";
}