This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Symbol Separation - Debugging
On Wed, 2 Jul 2003 12:21:49 -0400, Daniel Jacobowitz <drow@mvista.com> wrote:
> On Wed, Jul 02, 2003 at 12:05:26PM -0400, Jason Merrill wrote:
>> The -feliminate-dwarf2-dups code separates out debug info for a particular
>> header into a separate compilation unit, and uses symbolic references to
>> get at it. Duplicates are eliminated using .linkonce.
>
> Right; the difference between that code and this is that the references
> are in the same object file, so we can use DW_FORM_ref.
Hmm? With .linkonce processing the refs will only be in the same object
file for one object file. And in any case, the references aren't in the
same CU, so we need to use DW_FORM_ref_addr.
> That won't work into a different object file. And we'd need to parse the
> object file to get DIE numbers, too. Ugh!
No need; we can just use DW_FORM_ref_addr. Once gdb supports it.
Jason