RFC: Disassembly with call frame information

Hans-Peter Nilsson hp@bitrange.com
Fri Oct 20 22:25:18 GMT 2023


Just MHO since you asked for it:

On Thu, 19 Oct 2023, Nick Clifton wrote:
> Hi Guys,
> 
>   I am currently working on a patch (attached) to add an option to the
>   disassembler to display call frame information alongside the
>   disassembly.  This is a work in progress, but I wanted to see if
>   anyone was interested in the current state or had suggestions for
>   improvements.

That looks useful.

>   I am not sure how much information to display.  Currently I am just
>   showing the CFA assignments, but maybe I need to include the rbp and
>   ra updates as well ?

Sounds like the information would otherwise be incomplete, with 
references to those registers but not displaying their values; 
initial and as they change.  Also, there'd be nice symmetry if 
--disassemble-with-cfi has the same information as 
--dwarf=frames-interp.  Maybe tie the option names better?
Though --disassemble-with-dwarf-frames-interp seems chewy.

brgds, H-P


More information about the Binutils mailing list