From: Pedro Alves Date: Wed, 17 Feb 2010 23:07:24 +0000 (+0000) Subject: * lib/gdb.exp (build_id_debug_filename_get): Don't assume new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=061b528517208800e3f1adc721c40421fc360f37;p=binutils-gdb.git * lib/gdb.exp (build_id_debug_filename_get): Don't assume new `regsub' syntax available. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e2594c69735..518118ce5d1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-02-17 Pedro Alves + + * lib/gdb.exp (build_id_debug_filename_get): Don't assume new + `regsub' syntax available. + 2010-02-17 Pedro Alves * gdb.base/shmain.c (main): Remove printf call. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index a42d5517f60..627941d6d1e 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"; }