This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning when using separate debug info file


I tried debugging a program on MS-Windows after moving the debug info
to a separate file:

  objcopy --only-keep-debug e.exe e.debug
  strip -g e.exe
  objcopy --add-gnu-debuglink=e.debug e.exe

When I then invoke GDB, it does find the symbols, but emits a warning:

  Reading symbols from ./e.exe...Reading symbols from d:\foo\bar\e.debug...
  warning: section .gnu_debuglink not found in d:\foo\bar\e.debug

Why does it look for .gnu_debuglink in the debug info file?  That
section is in the executable file, and evidently GDB does find and
read it correctly, because it reads symbols from e.debug.

Is this somehow specific to Windows?  Does anyone have an idea what is
going on here?

TIA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]