> -----Original Message----- > From: Dwarf-Discuss <dwarf-discuss-boun...@lists.dwarfstd.org> On Behalf > Of Xing GUO via Dwarf-Discuss > Sent: Tuesday, July 14, 2020 10:39 PM > To: dwarf-discuss@lists.dwarfstd.org > Subject: [Dwarf-Discuss] Segment selectors for the range list table. > > Hi there, > > The DWARFv5 spec mentioned that there might be segment selectors in > the range list entries and when the segment_selector_size is 0, the > segment selectors are omitted from the range list entries. However, it > didn't mention how the segment selector should be encoded when the > segment_selector_size isn't 0. Can anyone help me figure it out? > Thanks a lot! Hi Xing, The segment selectors in the range list would be encoded the same way as they would be in the main .debug_info section. Range lists and location lists are essentially extensions to .debug_info, for cases where the range or location cannot be represented by simple DW_AT_* attribute values. The specifics of encoding the segment selector would be whatever is appropriate to the target. DWARF does not specify these details. Best Regards, --paulr > > 7.28 (page 243) > The segment size is given by the segment_selector_size field of the > header, and the address size is given by the address_size field of the > header. If the segment_selector_size field in the header is zero, the > segment selector is omitted from the range list entries. > > -- > Cheers, > Xing > _______________________________________________ > Dwarf-Discuss mailing list > Dwarf-Discuss@lists.dwarfstd.org > https://urldefense.com/v3/__http://lists.dwarfstd.org/listinfo.cgi/dwarf- > discuss-dwarfstd.org__;!!JmoZiZGBv3RvKRSx!v6qFHG- > c16QgrlK07KDC5v6Q8edq8S8mb3_4iif7SZxPna-t0k5tZRaMoXPgqvftiQ$ _______________________________________________ Dwarf-Discuss mailing list Dwarf-Discuss@lists.dwarfstd.org http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
Re: [Dwarf-Discuss] Segment selectors for the range list table.
Robinson, Paul via Dwarf-Discuss Wed, 15 Jul 2020 06:00:21 -0700
- [Dwarf-Discuss] Segment selectors for th... Xing GUO via Dwarf-Discuss
- Re: [Dwarf-Discuss] Segment selector... Robinson, Paul via Dwarf-Discuss
- Re: [Dwarf-Discuss] Segment sele... David Blaikie via Dwarf-Discuss
- Re: [Dwarf-Discuss] Segment ... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-Discuss] Segm... David Blaikie via Dwarf-Discuss
- Re: [Dwarf-Discuss]... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-Disc... David Blaikie via Dwarf-Discuss
- Re: [Dwarf-... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-... David Blaikie via Dwarf-Discuss
- Re: [Dwarf-... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-... David Blaikie via Dwarf-Discuss
- Re: [Dwarf-... Michael Eager via Dwarf-Discuss