Re: CFI for saved argument registers

2022-05-31 Thread Andreas Krebbel via Gcc
On 5/16/22 08:29, Andreas Krebbel via Gcc wrote: > Hi, > > I'm trying to provide a simple dwarf unwinder with access to the > argument register content. The goal is to make this information > available for optimized code without having to access debug > information for things like call site args.

Re: CFI for saved argument registers

2022-05-16 Thread Andreas Krebbel via Gcc
On 5/16/22 16:39, Andreas Schwab wrote: > On Mai 16 2022, Andreas Krebbel via Gcc wrote: > >> The only way I see right now is adding a new reg note to invalidate >> the save information in the reg_save array in dwarf2cfi. >> >> Would this be acceptable? Is there perhaps an easier way to achieve th

Re: CFI for saved argument registers

2022-05-16 Thread Andreas Schwab
On Mai 16 2022, Andreas Krebbel via Gcc wrote: > The only way I see right now is adding a new reg note to invalidate > the save information in the reg_save array in dwarf2cfi. > > Would this be acceptable? Is there perhaps an easier way to achieve that? Doesn't it work to use .cfi_remember_state/

Re: CFI for saved argument registers

2022-05-16 Thread Florian Weimer via Gcc
* Andreas Krebbel via Gcc: > For that purpose I save the argument registers to the stack as we > would do for a variable argument lists. But this time I also provide > the CFI to allow the unwinder to locate the save slots. Since I never > actually intend to restore the content there is no matchi

CFI for saved argument registers

2022-05-15 Thread Andreas Krebbel via Gcc
Hi, I'm trying to provide a simple dwarf unwinder with access to the argument register content. The goal is to make this information available for optimized code without having to access debug information for things like call site args. The extra overhead of saving the values to the stack is accep