This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14704] GDB fails to decompress relocatable files
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 15 Oct 2012 18:15:37 +0000
- Subject: [Bug gdb/14704] GDB fails to decompress relocatable files
- Auto-submitted: auto-generated
- References: <bug-14704-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14704
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-10-15 18:15:37 UTC ---
We arrive in bfd_get_full_section_contents with
sec->compress_status == COMPRESS_SECTION_NONE.
This is because BFD_DECOMPRESS is not set when calling
_bfd_elf_make_section_from_shdr.
Maybe having gdb set BFD_DECOMPRESS is the right thing to do.
It is not clear to me; BFD says that this is "for BFD use only",
but then I see uses of it in ld and binutils.
If this is the correct approach we could easily set the flag
in the various wrapper functions in gdb_bfd.c.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.