public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Ada] Add DWARF 5 support to System.Dwarf_Line
@ 2021-07-12 12:52 Pierre-Marie de Rodat
  2021-09-30 11:55 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Marie de Rodat @ 2021-07-12 12:52 UTC (permalink / raw)
  To: gcc-patches; +Cc: Eric Botcazou

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

The encoding of the debugging line information has substantially changed
in DWARF 5, so this adds the support for it alongside the existing code.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* libgnat/s-dwalin.ads: Adjust a few comments left and right.
	(Line_Info_Register): Comment out unused components.
	(Line_Info_Header): Add DWARF 5 support.
	(Dwarf_Context): Likewise.  Rename "prologue" into "header".
	* libgnat/s-dwalin.adb: Alphabetize "with" clauses.
	(DWARF constants): Add DWARF 5 support and reorder.
	(For_Each_Row): Adjust.
	(Initialize_Pass): Likewise.
	(Initialize_State_Machine): Likewise and fix typo.
	(Open): Add DWARF 5 support.
	(Parse_Prologue): Rename into...
	(Parse_Header): ...this and add DWARF 5 support.
	(Read_And_Execute_Isn): Rename into...
	(Read_And_Execute_Insn): ...this and adjust.
	(To_File_Name): Change parameter name and add DWARF 5 support.
	(Read_Entry_Format_Array): New procedure.
	(Skip_Form): Add DWARF 5 support and reorder.
	(Seek_Abbrev): Do not count entries and add DWARF 5 support.
	(Debug_Info_Lookup): Add DWARF 5 support.
	(Symbolic_Address.Set_Result): Likewise.
	(Symbolic_Address): Adjust.

[-- Attachment #2: patch.diff.gz --]
[-- Type: application/gzip, Size: 12105 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Ada] Add DWARF 5 support to System.Dwarf_Line
  2021-07-12 12:52 [Ada] Add DWARF 5 support to System.Dwarf_Line Pierre-Marie de Rodat
@ 2021-09-30 11:55 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2021-09-30 11:55 UTC (permalink / raw)
  To: Pierre-Marie de Rodat; +Cc: gcc-patches

> The encoding of the debugging line information has substantially changed
> in DWARF 5, so this adds the support for it alongside the existing code.
> 
> Tested on x86_64-pc-linux-gnu, committed on trunk

I have backported it, as well as the subsequent adjustments, onto the 11 
branch since DWARF-5 is the default there.

-- 
Eric Botcazou



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-30 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 12:52 [Ada] Add DWARF 5 support to System.Dwarf_Line Pierre-Marie de Rodat
2021-09-30 11:55 ` Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).