This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]