Re: [Dwarf-discuss] Alternative to 250130.1 (index valued DW_AT_object_pointer): LEB128 relative DIE offsets

2025-02-03 Thread Paul Robinson via Dwarf-discuss
Also, fixed-size DIEs are much easier when quickly scanning for something; you can derive the size of the DIE from the abbrev without having to look at the DIE content. When you have variable-size values such as LEB128 then you need to parse the values in order to determine where the next DIE start

Re: [Dwarf-Discuss] [EXTERNAL] - RE: Multiple floating point types with the same size but different encodings

2022-01-25 Thread Paul Robinson via Dwarf-Discuss
John Reagan tells me his message didn't go to the list, but Jakub quotes it in his reply. My comments below. > -Original Message- > From: Jakub Jelinek > Sent: Tuesday, January 25, 2022 7:10 AM > To: John Reagan > Cc: Robinson, Paul ; ja...@redhat.com; dwarf- > disc...@lists.dwarfstd.or

Re: [Dwarf-Discuss] Multiple floating point types with the same size but different encodings

2022-01-24 Thread Paul Robinson via Dwarf-Discuss
+ John Reagan who can (I hope) speak to the choice of using different ATE codes for distinguishing VAX/IEEE floats in OpenVMS. --paulor > -Original Message- > From: Dwarf-Discuss On Behalf > Of Jakub Jelinek via Dwarf-Discuss > Sent: Monday, January 24, 2022 5:17 PM > To: Jason Merrill >

Re: [Dwarf-Discuss] Inconsistency of C++ member function qualifiers

2021-10-05 Thread Paul Robinson via Dwarf-Discuss
According to https://en.cppreference.com/w/cpp/language/function the cv-qualifier is allowed only on non-static member functions, which are exactly the ones that have an implicit this-pointer parameter. cv - const/volatile qualification, only allowed in non-static member function declarations Ar

[Dwarf-Discuss] PSA: New LLVM vendor tag DW_TAG_LLVM_annotation

2021-09-02 Thread Paul Robinson via Dwarf-Discuss
In the interest of alerting others who maintain lists of vendor-defined tags, attributes, etc.: LLVM recently added DW_TAG_LLVM_annotation (0x6000). This is a generic way to add an arbitrary name/value pair to any existing DIE; its use within LLVM is to propagate certain source attributes into th

Re: [Dwarf-Discuss] DWARF v5 and "file 0"

2021-07-09 Thread Paul Robinson via Dwarf-Discuss
> it sounds like the general consensus is that: > > * In DWARF 5, file name entries are zero-indexed. > * DW_AT_decl_file of 0 means the first file name entry (index 0, which > happens to be the same as DW_AT_name of the unit). It does NOT mean an > unspecified file; that was an oversight in t

[Dwarf-Discuss] DWARF v5 and "file 0"

2021-07-08 Thread Paul Robinson via Dwarf-Discuss
Tom Russell asked me about this, and I think it's a bug in the v5 specification. In v5, the line-table header's directory table added an entry for directory 0. Previous versions had directory 0 mean the current compilation directory, i.e. DW_AT_comp_dir from the compile unit DIE. The file table

Re: [Dwarf-Discuss] debug_aranges use and overhead

2021-03-11 Thread Paul Robinson via Dwarf-Discuss
Yeah, we talked some last year about formalizing this more into the -1 tombstone - I thought maybe Paul had proposed that for standardization, though at a glance I don't see the proposal. It's probably somewhere there. 200609.1 Reserve an address value for “not present” --paulr

Re: [Dwarf-Discuss] debug_aranges use and overhead

2021-03-11 Thread Paul Robinson via Dwarf-Discuss
Tom Russell could perhaps speak to this better, but my understanding is that our debugger guys like having .debug_aranges, because parsing the CU DIE does take that extra effort. I am unfamiliar with their code so I have to take their word on it. But I can certainly imagine that probing hundre

Re: [Dwarf-Discuss] Split Dwarf vs. CU DW_AT_ranges / DW_AT_low_pc placement

2021-03-11 Thread Paul Robinson via Dwarf-Discuss
Hopefully not to side-track things too much... maybe wants its own thread, if there's more to debate here. >> For the case you suggested where it would be useful to keep the range >> list for the CU in the .o file, I think .debug_aranges is what you're >> looking for. > > aranges has been off by d

Re: [Dwarf-Discuss] compilers generating ABI non-compliant function calls?

2021-03-09 Thread Paul Robinson via Dwarf-Discuss
(re-sending because outlook omitted the group address) > -Original Message- > From: Dwarf-Discuss On Behalf > Of Jakub Jelinek via Dwarf-Discuss > Sent: Tuesday, March 9, 2021 10:16 AM > To: Andrew Cagney > Cc: DWARF Discussion > Subject: Re: [Dwarf-Discuss] compilers generating ABI non

[Dwarf-Discuss] implicit_value vs stack_value

2021-01-04 Thread Paul Robinson via Dwarf-Discuss
Happy New Year, everybody! A colleague just had a question for me about DW_OP_implicit_value which led me to wonder why we have both that and DW_OP_stack_value. Looking at http://dwarfstd.org/ShowIssue.php?issue=071227.1 which introduced the latter, it says in part: (This operator is similar to

Re: [Dwarf-Discuss] Alternate entry points

2018-10-24 Thread Paul Robinson via Dwarf-Discuss
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: Wednesday, October 24, 2018 6:16 AM > To: Rafik Zurob > Cc: Robinson, Paul; dwarf-discuss@lists.dwarfstd.org > Subject: Re: [Dwarf-Discuss] Alternate entry points > > On Wed, Oct 24, 2018 at 01:00:26AM -0400, R

Re: [Dwarf-Discuss] Alternate entry points

2018-10-23 Thread Paul Robinson via Dwarf-Discuss
> -Original Message- > From: Dwarf-Discuss [mailto:dwarf-discuss-boun...@lists.dwarfstd.org] On > Behalf Of Paul Robinson via Dwarf-Discuss > Sent: Tuesday, October 23, 2018 5:40 PM > To: dwarf-discuss@lists.dwarfstd.org > Subject: [Dwarf-Discuss] Alternate entry poi

[Dwarf-Discuss] Alternate entry points

2018-10-23 Thread Paul Robinson via Dwarf-Discuss
On one of the LLVM lists, a question came up about representing alternate entry points. Fortran and PL/I and probably other languages can do this. I see DWARF has DW_TAG_entry_point, however the spec is completely silent on how this entry relates to other entries for the same subprogram. Should th

[Dwarf-Discuss] DWARF dumpers should note compressed sections

2018-08-03 Thread Paul Robinson via Dwarf-Discuss
Recently somebody was poking around looking at compressed DWARF sections, and observed that some tools (dwarfdump, objdump, readelf) were dumping them just fine, but without any indication that the original section was compressed (citing ELF flag SHF_COMPRESSED). If anybody on this list happens to

Re: [Dwarf-Discuss] Asm syntax for DWARF 5 line table info

2018-06-18 Thread Paul Robinson via Dwarf-Discuss
Filed as bug #23310 at sourceware.org/bugzilla. --paulr > -Original Message- > From: Dwarf-Discuss [mailto:dwarf-discuss-boun...@lists.dwarfstd.org] On > Behalf Of Paul Robinson via Dwarf-Discuss > Sent: Monday, June 18, 2018 1:06 PM > To: ni...@redhat.com

Re: [Dwarf-Discuss] Asm syntax for DWARF 5 line table info

2018-06-18 Thread Paul Robinson via Dwarf-Discuss
> -Original Message- > From: Nick Clifton [mailto:ni...@redhat.com] > Sent: Monday, June 18, 2018 10:01 AM > To: Robinson, Paul; dwarf-discuss@lists.dwarfstd.org > Cc: binut...@sourceware.org > Subject: Re: [Dwarf-Discuss] Asm syntax for DWARF 5 line table info > > Hi Paul, > > >>> I p

Re: [Dwarf-Discuss] Asm syntax for DWARF 5 line table info

2018-06-15 Thread Paul Robinson via Dwarf-Discuss
cc binutils > -Original Message- > From: Nick Clifton [mailto:ni...@redhat.com] > Sent: Friday, June 15, 2018 6:18 AM > To: Robinson, Paul; dwarf-discuss@lists.dwarfstd.org > Subject: Re: [Dwarf-Discuss] Asm syntax for DWARF 5 line table info > > Hi Paul, > > > I have been working on add

[Dwarf-Discuss] Asm syntax for DWARF 5 line table info

2018-06-14 Thread Paul Robinson via Dwarf-Discuss
I have been working on adding DWARF 5 support to LLVM, and some of that support requires some assembler syntax tweaks. It has been suggested that I publicize those tweaks outside of the LLVM world, and this list seems like the most likely place to find the people who would be most interested in

Re: [Dwarf-Discuss] Line table "no-op" sequence, leb length

2018-04-30 Thread Paul Robinson via Dwarf-Discuss
> -Original Message- > From: David Anderson [mailto:dave...@linuxmail.org] > Sent: Thursday, April 26, 2018 4:48 PM > To: Robinson, Paul > Subject: Re: [Dwarf-Discuss] Line table "no-op" sequence, leb length > > On 04/26/2018 10:04 AM, Paul Robinson via D

Re: [Dwarf-Discuss] Line table "no-op" sequence

2018-04-26 Thread Paul Robinson via Dwarf-Discuss
> >> One technique you haven't mentioned is to stretch out LEB128 numbers > >> with extra 0x80's. > > > > Yeah, I kind of don't like abusing the LEB format like that. Maybe > > for one or two bytes, but not arbitrarily long strings (as you note, > > some consumers will decide it's corrupted data).

Re: [Dwarf-Discuss] Line table "no-op" sequence

2018-04-25 Thread Paul Robinson via Dwarf-Discuss
> One technique you haven't mentioned is to stretch out LEB128 numbers > with extra 0x80's. Yeah, I kind of don't like abusing the LEB format like that. Maybe for one or two bytes, but not arbitrarily long strings (as you note, some consumers will decide it's corrupted data). > When doing an in

[Dwarf-Discuss] Line table "no-op" sequence

2018-04-24 Thread Paul Robinson via Dwarf-Discuss
Recently I had a chat with one of the linker developers on my team. He was trying to work out how to insert what would effectively be a no-op sequence into the line table. One reason to do this is if a producer wanted to pad the line table for a compilation unit, either for alignment purposes or t

Re: [Dwarf-Discuss] The .debug_str_offsets section and libdwarf/dwarfdump

2018-04-18 Thread Paul Robinson via Dwarf-Discuss
+wolfgang who did the string-offsets implementation. --paulr > -Original Message- > From: David Anderson [mailto:dave...@linuxmail.org] > Sent: Monday, April 16, 2018 5:56 PM > To: David Blaikie; Robinson, Paul; Pavel Labath > Cc: dwarf-discuss@lists.dwarfstd.org > Subject: Re: [Dwarf-Disc

Re: [Dwarf-Discuss] debug_names - what should go in ?

2018-04-10 Thread Paul Robinson via Dwarf-Discuss
The intent of the index is given pretty plainly in the non-normative text at the bottom of p.137; you should be able to look up any unqualified name in the index. If the normative text doesn't accomplish that, we have an opportunity to improve the spec. ☺ FWIW here's my take: Enumerations are