public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] DWARF Two Level Line Tables
@ 2015-03-12 19:59 Doug Evans
  2015-03-13 17:32 ` Yao Qi
  2015-05-28 17:12 ` Doug Evans
  0 siblings, 2 replies; 4+ messages in thread
From: Doug Evans @ 2015-03-12 19:59 UTC (permalink / raw)
  To: gdb-patches; +Cc: ccoutant

Hi.

This patch set adds Two Level Line Tables support to gdb,
as well as support for the DWARF 5 line table extensions.

http://wiki.dwarfstd.org/index.php?title=TwoLevelLineTables
http://www.dwarfstd.org/ShowIssue.php?issue=140906.1
http://www.dwarfstd.org/ShowIssue.php?issue=140724.1

The current version of the patch uses a gross hack because
consumers of debug info, including gdb, are not aggressive
enough in rejecting versions they don't understand.
So that existing gdbs won't crash when given the new line table
we create a DWARF 4 line header, and tuck the guts of the
two line tables (logicals + actuals) in something that looks
like a single entry.
Fortunately 7.9 won't crash, so the plan is to hopefully do
something more sensible.

The patch has been regression tested with existing debug info,
as well as the new two-level-line-table support on the google-4.9.x
gcc branch, and the binutils users/ccoutant/two-level-line-tables branch.

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

* Re: [PATCH 0/6] DWARF Two Level Line Tables
  2015-03-12 19:59 [PATCH 0/6] DWARF Two Level Line Tables Doug Evans
@ 2015-03-13 17:32 ` Yao Qi
  2015-03-13 17:44   ` Doug Evans
  2015-05-28 17:12 ` Doug Evans
  1 sibling, 1 reply; 4+ messages in thread
From: Yao Qi @ 2015-03-13 17:32 UTC (permalink / raw)
  To: Doug Evans; +Cc: gdb-patches, ccoutant

Doug Evans <dje@google.com> writes:

> This patch set adds Two Level Line Tables support to gdb,
> as well as support for the DWARF 5 line table extensions.

Hi Doug,
I notice that a lot of code is added into dwarf2read.c in this patch
set.  Is it possible to put them in a separated file or split
dwarf2read.c?  Every time, when I read dwarf2read.c, I find it is too
long to understand.  IWBN to split dwarf2read.c, at least, add new stuff
into a new file.

-- 
Yao (齐尧)

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

* Re: [PATCH 0/6] DWARF Two Level Line Tables
  2015-03-13 17:32 ` Yao Qi
@ 2015-03-13 17:44   ` Doug Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Doug Evans @ 2015-03-13 17:44 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches, Cary Coutant

On Fri, Mar 13, 2015 at 10:32 AM, Yao Qi <qiyaoltc@gmail.com> wrote:
> Doug Evans <dje@google.com> writes:
>
>> This patch set adds Two Level Line Tables support to gdb,
>> as well as support for the DWARF 5 line table extensions.
>
> Hi Doug,
> I notice that a lot of code is added into dwarf2read.c in this patch
> set.  Is it possible to put them in a separated file or split
> dwarf2read.c?  Every time, when I read dwarf2read.c, I find it is too
> long to understand.  IWBN to split dwarf2read.c, at least, add new stuff
> into a new file.

dwarf2read.c is long overdue for a split.
[though this patch set can't just be put in a new file as it
just augments the line number support that is already there]

But I'm still trying to catch gcc's dwarf2out.c.
With this patch we're within 15KB, we've almost caught up! :-)

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

* Re: [PATCH 0/6] DWARF Two Level Line Tables
  2015-03-12 19:59 [PATCH 0/6] DWARF Two Level Line Tables Doug Evans
  2015-03-13 17:32 ` Yao Qi
@ 2015-05-28 17:12 ` Doug Evans
  1 sibling, 0 replies; 4+ messages in thread
From: Doug Evans @ 2015-05-28 17:12 UTC (permalink / raw)
  To: gdb-patches

On Thu, Mar 12, 2015 at 12:58 PM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> This patch set adds Two Level Line Tables support to gdb,
> as well as support for the DWARF 5 line table extensions.
>
> http://wiki.dwarfstd.org/index.php?title=TwoLevelLineTables
> http://www.dwarfstd.org/ShowIssue.php?issue=140906.1
> http://www.dwarfstd.org/ShowIssue.php?issue=140724.1
>
> The current version of the patch uses a gross hack because
> consumers of debug info, including gdb, are not aggressive
> enough in rejecting versions they don't understand.
> So that existing gdbs won't crash when given the new line table
> we create a DWARF 4 line header, and tuck the guts of the
> two line tables (logicals + actuals) in something that looks
> like a single entry.
> Fortunately 7.9 won't crash, so the plan is to hopefully do
> something more sensible.
>
> The patch has been regression tested with existing debug info,
> as well as the new two-level-line-table support on the google-4.9.x
> gcc branch, and the binutils users/ccoutant/two-level-line-tables branch.

I've committed the first four patches in this series,
which were just cleanups.

The remaining two patches add support for DWARF v5 line
tables as well as the proposed two level line tables.
Since stock gcc doesn't generate these yet my plan
is to hold off committing them for now.
I'm happy to commit them early if someone needs/wants me too.

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

end of thread, other threads:[~2015-05-28 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 19:59 [PATCH 0/6] DWARF Two Level Line Tables Doug Evans
2015-03-13 17:32 ` Yao Qi
2015-03-13 17:44   ` Doug Evans
2015-05-28 17:12 ` Doug Evans

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).