[Patch Debug] Emit pubnames for reorder & partition case.
Richard Henderson
rth@redhat.com
Mon Dec 20 21:45:00 GMT 2010
On 12/20/2010 03:18 AM, IainS wrote:
> + /* There is no real support in DW2 for this .. so we make
> + a work-around. First, emit the pub name for the segment
> + containing the function label. Then make and emit a
> + simplified subprogram DIE for the second segment with the
> + name post-fixed with _$hot$ or _$cold$. We use the same
> + linkage name for the second die so that gdb will find both
> + sections when given "b foo". */
This doesn't work when $ is not allowed, aka NO_DOLLAR_IN_LABEL.
Presumably we need this workaround since Darwin is strict dwarf2?
r~
More information about the Gcc-patches
mailing list