gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH/RFC] PR other/22313: Hot/cold sections vs. dwarf2 (take 2)

Subject: Re: [PATCH/RFC] PR other/22313: Hot/cold sections vs. dwarf2 take 2
From: Nicolas Setton
Date: Fri, 8 Sep 2006 16:51:42 +0200
Hello Roger,

Grr. Indeed you're right that it looks like convert_cfa_to_fb_loc_list
in dwarf2out.c doesn't appear to support set_loc.  The following one
line patch appears to avoid the null range in your testcase on
x86-linux.  I'm not really a dwarf expert, so I wonder if you could
confirm that the debugging information is now correct (and we can now
find "a" in "main"). From the source code, this looks like the correct
fix.

This patch looks good to me. It does fix the dwarf-2 problem we had observed, and as a result the debugger is back on track with respect to this locations list issue.

Many thanks for looking at this,

Nicolas


<Prev in Thread] Current Thread [Next in Thread>