Adding call_line/call_file DWARF information

Daniel Towner daniel.towner@picochip.com
Thu Nov 18 13:29:00 GMT 2004


Hi all,

I am writing a symbolic debugger, and would like to be able to determine 
the location from which an inlined function was originally called (i.e., 
the DWARF DW_AT_call_line, DW_AT_call_file attributes). This isn't 
currently generated by gcc so I have been looking at how I might go 
about adding it. It would have to be handled in the 
gen_inlined_subroutine_die in dwarf2out.c. Could someone give me a clue 
as to how I can go about finding the original position from which the 
inlined subroutine was called? Is this information available in the trees?

thanks,

dan.

============================================================================
Daniel Towner
picoChip Designs Ltd., Riverside Buildings, 108, Walcot Street, BATH,
BA1 5BG
daniel.towner@picochip.com
07786 702589 




More information about the Gcc mailing list