[PATCH] Fix the remainder of PR22762 (GDB is crashing on DW_OP_piece being used inside of DW_AT_frame_base)

David Blaikie dblaikie at gmail.com
Thu Mar 12 14:42:31 PDT 2015


On Thu, Mar 12, 2015 at 2:39 PM, Adrian Prantl <aprantl at apple.com> wrote:

> [Just noticed that I forgot to rename MayUsePieceForSubRegMask in
> DwarfCompileUnit.]
>
> The problem is that the TargetRegisterInfo tells us that the frame
> register is ebp, for which there is no separate register number,


Well, we don't have one listed, but GDB/GCC might have one? Since the
register numbering is an implementation detail, not part of the DWARF spec.
But I haven't looked/wouldn't really know where to look to see if it's just
a matter of us adding the appropriate number.


> so it must be constructed from rbp. The DWARF backend doesn't know about
> what is in the upper half of rbp so it must mask out the upper bits.
>
>
> http://reviews.llvm.org/D8233
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150312/c84a30d5/attachment.html>


More information about the llvm-commits mailing list