DWARF Standard


HOME
SPECIFICATIONS
FAQ
ISSUES



220713.1 David Anderson Name Table Figure 6.1 page 140 Editorial Open


Section 6.1.1.2, pg 140
When implementing a reader of the DWARF5 name table I found the 
bottom part (Entry Pool part) of page 140 to be less than helpful.

It leaves out mention of the Abbrev Table entirely,
and says attributes are in the Entry Pool, which is incorrect
as the Entry Pool has abbrev codes and *values for attributes*,
not attributes themselves.

What follows is a representation of the existing DWARF5
name table Entry Pool and Abbrev table.
Using text 'graphics' here so it suggests something
of what a graphical representation would look like.

It maw well be that the following replacement for
this part of page 140 might not fit on page 140.

Maybe use symbolic abbrev codes
instead of example integers? 
Used example integers here for abbrev codes.

index attr meaning DW_IDX_<something>
form       meaning DW_FORM_<something>
tag        meaning DW_TAG_<something>

Abbrev Table
   abbrev code   1
   tag
   index attr, form
   index attr, form
   ...
   0,0
   abbrev code   5
   tag
   index attr, form
   ...
   0,0
   ... (other abbreviations )
   end byte 0

Entry Pool
abbrev codes here must looked up in the Abbrev Table.
They are a symbolic reference.
(from name table) Entry #1 for "a"  abbrev code 5
                    sequence of values
                    for abbrev code 5
                  Entry #2 for "a"  abbrev code 1
                    sequence of values
                    for abbrev code 1
                  0(end of entries for "a")
(from name table) Entry #1 for "b"  abbrev code 5
                    sequence of values
                    for abbrev code 1
                  0(end of entries for "b")
                  ...




All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2007-2022 by DWARF Standards Committee.