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

2016-07-21 Thread Simon Brand
Apologies for the delay, but I have updated the original proposal to take Pedro's suggestion into account. Instead of using DW_AT_location and DW_LNCT_location, it uses DW_AT_source and DW_LNCT_source so the source is embedded in the DWARF and doesn't need to be loaded. These are described bel

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

2016-06-15 Thread Simon Brand
This approach seems promising; it's probably easier to specify and keeps all the necessary information within DWARF. We'd definitely need to allow the line table and compile unit information to reference the same string so that there's no duplication. Thanks, Simon On 13/06/16 11:22, Pedro

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

2016-06-15 Thread Earlam, David
>From: Dwarf-Discuss [mailto:dwarf-discuss-boun...@lists.dwarfstd.org] On >Behalf Of Simon Brand >Sent: 13 June 2016 09:08 >Could you expand on why this is not in the spirit of DW_AT_location? I'll try to answer this point. I think re-using DW_AT_location for source code text lookup is "not in t

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
*To:* dwarf-discuss@lists.dwarfstd.org <mailto:dwarf-discuss@lists.dwarfstd.org> *Subject:* Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand) --[ quote ]-- I'm writing this email in particular to address the problem of referencing source fi

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

2016-06-10 Thread Ron Brender
easonable approach. > > --paulr > > > > *From:* Dwarf-Discuss [mailto:dwarf-discuss-boun...@lists.dwarfstd.org] *On > Behalf Of *Bishop, John E > *Sent:* Thursday, June 09, 2016 10:10 AM > *To:* dwarf-discuss@lists.dwarfstd.org > *Subject:* Re: [Dwarf-Discuss] DWARF

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

2016-06-10 Thread Simon Brand
td.org *Subject:* Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand) --[ quote ]-- I'm writing this email in particular to address the problem of referencing source files in DWARF for online-compiled programs. The issue is that programming models such as OpenCL c

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

2016-06-09 Thread Robinson, Paul
ohn E Sent: Thursday, June 09, 2016 10:10 AM To: dwarf-discuss@lists.dwarfstd.org Subject: Re: [Dwarf-Discuss] DWARF and online-compiled programs (Simon Brand) --[ quote ]-- I'm writing this email in particular to address the problem of referencing source files in DWARF for online-compiled pro

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

2016-06-09 Thread Bishop, John E
--[ quote ]-- I'm writing this email in particular to address the problem of referencing source files in DWARF for online-compiled programs. The issue is that programming models such as OpenCL can often have source generated at runtime,which is compiled online, with its output not written to fi

[Dwarf-Discuss] DWARF and online-compiled programs

2016-06-09 Thread Simon Brand
Hi everyone, I'm a member of the HSA Foundation (http://www.hsafoundation.com/) tools working group. We're currently working on tools and standards for debugging heterogeneous systems. There are many new problems which we are coming across in designing these solutions and we are hoping to in