This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use DW_OP_addr for constant addresses in debuginfo
- From: Roland McGrath <roland at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Dec 2009 17:38:07 -0800 (PST)
- Subject: Re: [PATCH] Use DW_OP_addr for constant addresses in debuginfo
- References: <20091214215617.GV22813@hs20-bc2-1.build.redhat.com>
Looks good to me! I think it's reasonably likely that the DWARF committee
will agree to admit DW_FORM_addr for DW_AT_const_value in v4. So that
would be more space-optimal for some cases. But this encoding has the
benefit that GDB groks it today and that GCC already won't try to produce
it at all unless you tell it to use v4 features--so the chances of
unexpectedly producing output that confuses any GDB version seem slim.
Thanks,
Roland