[Dwarf-discuss] Question on DW_AT_low_pc for "repeated" DW_TAG_subprogram

2024-05-16 Thread Martin via Dwarf-discuss
If a compiler adds a DW_TAG_subprogram for a routine from a different compilation unit ... Maybe because - the other CU has no debug info - The compiler does not support referencing cross CU Would there be any reason why the compiler would not be allowed to include a  DW_AT_low_pc  for that rou

Re: [Dwarf-discuss] Question on DW_AT_low_pc for "repeated" DW_TAG_subprogram

2024-05-16 Thread David Blaikie via Dwarf-discuss
On Thu, May 16, 2024 at 7:10 AM Martin via Dwarf-discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > If a compiler adds a DW_TAG_subprogram for a routine from a different > compilation unit ... > Maybe because > - the other CU has no debug info > - The compiler does not support referencing cross

[Dwarf-discuss] strx use in debug_line table

2024-05-16 Thread Mark Wielaard via Dwarf-discuss
Hi, Section 6.2.4.1 Standard Content Descriptions under 1. DW_LNCT_path has the following description on using DW_FORM_strx forms: In a .debug_line.dwo section, the forms DW_FORM_strx, DW_FORM_strx1, DW_FORM_strx2, DW_FORM_strx3 and DW_FORM_strx4 may also be used. These refer into the .d

Re: [Dwarf-discuss] Question on DW_AT_low_pc for "repeated" DW_TAG_subprogram

2024-05-16 Thread Martin via Dwarf-discuss
On 16/05/2024 18:46, David Blaikie via Dwarf-discuss wrote: On Thu, May 16, 2024 at 7:10 AM Martin via Dwarf-discuss > wrote: If a compiler adds a DW_TAG_subprogram for a routine from a different compilation unit ... Maybe because - the o

Re: [Dwarf-discuss] Question on DW_AT_low_pc for "repeated" DW_TAG_subprogram

2024-05-16 Thread Martin via Dwarf-discuss
On 16/05/2024 21:58, Martin via Dwarf-discuss wrote: If there is code (with debug info) that uses a class/struct that is defined in a unit with debug info (or at least a base class is in such a Tiny but important mistake..., it meant to write uses a class/struct that is defined in a unit