diff options
author | Mark Kettenis <kettenis@gnu.org> | 2007-09-09 22:25:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2007-09-09 22:25:31 +0000 |
commit | 8b3fc8d898e7be8b3a60d30e76ff956d0941a023 (patch) | |
tree | 079d84a99aef7a42b31be6aea69145599a6c9357 /gdb/testsuite/lib | |
parent | 695e2681dd6ac597f023ac11dab32192e935d498 (diff) | |
download | gdb-8b3fc8d898e7be8b3a60d30e76ff956d0941a023.zip gdb-8b3fc8d898e7be8b3a60d30e76ff956d0941a023.tar.gz gdb-8b3fc8d898e7be8b3a60d30e76ff956d0941a023.tar.bz2 |
* lib/gdb.exp (build_id_debug_filename_get): Improve check for
build-id.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 5629762..48b62f4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2491,7 +2491,14 @@ proc separate_debug_filename { exec } { # Return "" if no build-id found. proc build_id_debug_filename_get { exec } { set tmp "${exec}-tmp" - exec objcopy -j .note.gnu.build-id -O binary $exec $tmp + set objcopy_program [transform objcopy] + + set result [catch "exec $objcopy_program -j .note.gnu.build-id -O binary $exec $tmp" output] + verbose "result is $result" + verbose "output is $output" + if {$result == 1} { + return "" + } set fi [open $tmp] # Skip the NOTE header. read $fi 16 |