RFC: Disassembly with call frame information
Indu Bhagat
indu.bhagat@oracle.com
Sun Oct 22 06:49:14 GMT 2023
On 10/20/23 3:25 PM, Hans-Peter Nilsson wrote:
> 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.
>
I agree that this will be a useful functionality.
I also agree that displaying the same information as
--dwarf=frames-interp is ideal; but if that is not feasible, at the
minimum, we should include CFA, FP and RA.
More information about the Binutils
mailing list