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

H.J Lu hjl.tools at gmail.com
Thu Mar 12 14:48:17 PDT 2015


In http://reviews.llvm.org/D8233#140148, @aprantl 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, 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.


Not if ebp is used as frame register.  It is OK to use rbp's DWARF register
number to map ebp when ebp is used as frame register.


http://reviews.llvm.org/D8233

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list