This is the mail archive of the gdb-prs@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]

[Bug gdb/22984] please add enhanced support for compressed separate debug_info files


https://sourceware.org/bugzilla/show_bug.cgi?id=22984

--- Comment #1 from Jason Vas Dias <jason.vas.dias at gmail dot com> ---
That patch is against 8.1.1 . 

I need to apply it or something like it for each GDB rebuild.


Example output:

 $ gcc -g -o hello hello.c
 $ objcopy --only-keep-debug hello hello.debug
 $ strip --keep-file-symbols hello
 $ mkdir $PWD/.build-id
 $ file hello
 ...BuildID[sha1]=b003de6398099b21398578f3c99bc3ecb0f1c05e,...
 $ mkdir .build-id/b0
 $ mv hello.debug .build-id/b0/03de6398099b21398578f3c99bc3ecb0f1c05e.debug
 $ xz --compress .build-id/b0/03de6398099b21398578f3c99bc3ecb0f1c05e.debug
 $ gdb -ex 'set debug-file-directory '$PWD
 GNU gdb (GDB) 8.1
...
(gdb) file hello
Reading symbols from hello...  Trying
/tmp/.build-id/b0/03de6398099b21398578f3c99bc3ecb0f1c05e.debug
  Trying /tmp/.build-id/b0/03de6398099b21398578f3c99bc3ecb0f1c05e.debug.xz
  Uncompressing: '/usr/bin/xz --uncompress <
/tmp/.build-id/b0/03de6398099b21398578f3c99bc3ecb0f1c05e.debug.xz >
/tmp/0_03de6398099b21398578.debug'.
  Uncompression succeeded.Reading symbols from
/tmp/0_03de6398099b21398578.debug...done.
done.
(gdb) q

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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