Improve "set debug separate-debug-file"
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 26 Dec 2018 16:49:51 +0000 (11:49 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 26 Dec 2018 16:49:51 +0000 (11:49 -0500)
commit50794b45a2a7330fc32b118bff584a3a2e649ac5
tree1ff976fb2cba7808f2ecbfc54bfd167a394f06d8
parent5172760036cc706596970b35f106aa5a9093b44b
Improve "set debug separate-debug-file"

"set debug separate-debug-file" shows which candidates are considered,
when trying to find separate debug info.  But it's not clear if GDB used
a certain candidate, and if not, why not.  This patch adds some
precision:

Before:

  Looking for separate debug info (debug link) for /lib/x86_64-linux-gnu/libc.so.6
    Trying /lib/x86_64-linux-gnu/libc-2.23.so
    Trying /lib/x86_64-linux-gnu/.debug/libc-2.23.so
    Trying /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so

After:

  Looking for separate debug info (debug link) for /lib/x86_64-linux-gnu/libc.so.6
    Trying /lib/x86_64-linux-gnu/libc-2.23.so... no, same file as the objfile.
    Trying /lib/x86_64-linux-gnu/.debug/libc-2.23.so... no, unable to open.
    Trying /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so... yes!

gdb/ChangeLog:

* build-id.c (build_id_to_debug_bfd): Enhance debug output.
* symfile.c (separate_debug_file_exists): Likewise.
gdb/ChangeLog
gdb/build-id.c
gdb/symfile.c
This page took 0.025125 seconds and 4 git commands to generate.