* lib/gdb.exp (build_id_debug_filename_get): Don't assume new

`regsub' syntax available.
This commit is contained in:
Pedro Alves 2010-02-17 23:07:24 +00:00
parent 51e139990e
commit 061b528517
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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";
}