Re: [Dwarf-discuss] Facing a issue in contents of dwarf debug info section in an ELF file

2023-09-27 Thread David Anderson via Dwarf-discuss
On 9/25/23 00:11, Kyle Huey via Dwarf-discuss wrote: Most likely the .debug_info section is SHF_COMPRESSED. Try compiling with -gz=none. Also note that there are different approaches that have been used. If the section content starts with "ZLIB" a struct is present and the content is zlib/l

Re: [Dwarf-discuss] Facing a issue in contents of dwarf debug info section in an ELF file

2023-09-25 Thread Rishi Raj via Dwarf-discuss
Thanks, it worked. On Mon, 25 Sept 2023, 12:42 Kyle Huey, wrote: > Most likely the .debug_info section is SHF_COMPRESSED. Try compiling with > -gz=none. > > - Kyle > > On Mon, Sep 25, 2023, 1:36 PM Rishi Raj via Dwarf-discuss < > dwarf-discuss@lists.dwarfstd.org> wrote: > >>

Re: [Dwarf-discuss] Facing a issue in contents of dwarf debug info section in an ELF file

2023-09-25 Thread Kyle Huey via Dwarf-discuss
Most likely the .debug_info section is SHF_COMPRESSED. Try compiling with -gz=none. - Kyle On Mon, Sep 25, 2023, 1:36 PM Rishi Raj via Dwarf-discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > > > I am trying to implement a dwarf parser in C++

[Dwarf-discuss] Facing a issue in contents of dwarf debug info section in an ELF file

2023-09-24 Thread Rishi Raj via Dwarf-discuss
I am trying to implement a dwarf parser in C++ without using any external dependencies. As mentioned in dwarf5 standard, debug info first 4 bytes or 12 bytes denotes the unit length Basically this: unit_length (initial length) A 4-byte or 12-by