mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* lib/gdb.exp (build_id_debug_filename_get): Don't assume new
`regsub' syntax available.
This commit is contained in:
@ -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>
|
2010-02-17 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.base/shmain.c (main): Remove printf call.
|
* gdb.base/shmain.c (main): Remove printf call.
|
||||||
|
@ -2830,7 +2830,7 @@ proc build_id_debug_filename_get { exec } {
|
|||||||
}
|
}
|
||||||
# Convert it to hex.
|
# Convert it to hex.
|
||||||
binary scan $data H* data
|
binary scan $data H* data
|
||||||
set data [regsub {^..} $data {\0/}]
|
regsub {^..} $data {\0/} data
|
||||||
return ".build-id/${data}.debug";
|
return ".build-id/${data}.debug";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user