Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand)

2016-06-13 Thread Bishop, John E
> For example, add a new attribute, e.g., DW_AT_source, and in 3.1.1 where > DW_AT_name is described: However we point to the source code, we'd want to be able to do PC/line correlation; the line number table currently uses the source file name and the line (and column) numbers; the proposal sh

Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand)

2016-06-13 Thread Pedro Alves
(sorry for the double-post for those to got it, hadn't realized this address wasn't subscribed to the list, and thus got rejected.) On 06/13/2016 09:07 AM, Simon Brand wrote: > Also, the source might not be "in memory", as it might be placed in a > binary segment which is not loaded. The debugger

Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand)

2016-06-13 Thread Simon Brand
Thanks for your thoughts. Could you expand on why this is not in the spirit of DW_AT_location? Those two alternatives seem reasonable, but we'd really like to have a method standardised in DWARF for this so that the compiler and debugger don't need an additional contract between them. Also,