This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22984] please add enhanced support for compressed separate debug_info files
- From: "jason.vas.dias at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 20 Mar 2018 02:53:46 +0000
- Subject: [Bug gdb/22984] please add enhanced support for compressed separate debug_info files
- Auto-submitted: auto-generated
- References: <bug-22984-4717@http.sourceware.org/bugzilla/>
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.