2007-09-01 Jan Kratochvil * NEWS: Mention the build-id .debug files verification. 2007-09-01 Jan Kratochvil * gdb.texinfo (Separate Debug Files): Cosmetic quoting removal. New binaries build instructions for the ``build ID'' inclusion. --- gdb/NEWS 28 Aug 2007 19:57:11 -0000 1.236 +++ gdb/NEWS 1 Sep 2007 11:29:43 -0000 @@ -61,6 +61,9 @@ Windows and SymbianOS). * The GDB remote stub, gdbserver, now supports dynamic link libraries (DLLs) on Windows and Windows CE targets. +* GDB now supports a faster verification a .debug file matches its binary +according to its build-id signature, if the signature present. + * New commands set remoteflow --- gdb/doc/gdb.texinfo 1 Sep 2007 10:28:25 -0000 1.426 +++ gdb/doc/gdb.texinfo 1 Sep 2007 11:29:53 -0000 @@ -12033,7 +12033,7 @@ following commands: @smallexample @kbd{objcopy --only-keep-debug foo foo.debug} @kbd{strip -g foo} -@kbd{objcopy --add-gnu-debuglink="foo.debug" "foo"} +@kbd{objcopy --add-gnu-debuglink=foo.debug foo} @end smallexample @noindent @@ -12044,6 +12044,11 @@ Drepper's @file{elfutils} package, start a version of the @code{strip} command such that the command @kbd{strip foo -f foo.debug} has the same functionality as the three commands above. +``Debug ID'' gets embedded into the main executable using @code{ld --build-id} +or the @value{NGCC} counterpart @code{gcc -Wl,--build-id}. ``Debug ID'' +support plus compatibility fixes for debug files separation are present in +@sc{gnu} binary utilities (Binutils) since version 2.17.50.0.18. + Since there are many different ways to compute CRC's for the debug link (different polynomials, reversals, byte ordering, etc.), the simplest way to describe the CRC used in @code{.gnu_debuglink}