public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] readelf --debug-dump=gdb_index support for v4
@ 2011-01-25 17:29 Jan Kratochvil
       [not found] ` <AANLkTi=94AfA9JbzzkF9OCCUcfCKV+ic-z155onov9TA@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kratochvil @ 2011-01-25 17:29 UTC (permalink / raw)
  To: binutils; +Cc: Doug Evans

Hello,

GDB HEAD has now started producing + requiring for consumption only .gdb_index
section version 4.
	Re: .gdb_index version 4? [Re: [commit] fix symtab/12302]
	http://sourceware.org/ml/gdb-patches/2011-01/msg00502.html

Here is the reader update.  OK to check in?


Thanks,
Jan


binutils/
2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* dwarf.c (display_gdb_index): Support version 4, warn on version 3.

--- binutils/dwarf.c	15 Dec 2010 08:45:59 -0000	1.82
+++ binutils/dwarf.c	25 Jan 2011 17:26:30 -0000
@@ -4893,8 +4893,15 @@ display_gdb_index (struct dwarf_section 
 
   /* Prior versions are obsolete, and future versions may not be
      backwards compatible.  */
-  if (version != 3)
+  switch (version)
     {
+    case 3:
+      warn (_("gdb_index version 3 is ignored by GDB as it has broken "
+	      "Address table\n"));
+      break;
+    case 4:
+      break;
+    default:
       warn (_("Unsupported version %lu.\n"), (unsigned long) version);
       return 0;
     }

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

* Re: [patch] readelf --debug-dump=gdb_index support for v4
       [not found] ` <AANLkTi=94AfA9JbzzkF9OCCUcfCKV+ic-z155onov9TA@mail.gmail.com>
@ 2011-01-25 17:43   ` Jan Kratochvil
  2011-01-26 10:11     ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kratochvil @ 2011-01-25 17:43 UTC (permalink / raw)
  To: Doug Evans; +Cc: binutils

On Tue, 25 Jan 2011 18:37:49 +0100, Doug Evans wrote:
> IWBN to reword the warning below to something like "The address table data
> in version 3 may be wrong."

Updated.


Thanks,
Jan


binutils/
2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
	    Doug Evans  <dje@google.com>

	* dwarf.c (display_gdb_index): Support version 4, warn on version 3.

--- binutils/dwarf.c	15 Dec 2010 08:45:59 -0000	1.82
+++ binutils/dwarf.c	25 Jan 2011 17:42:44 -0000
@@ -4893,8 +4893,14 @@ display_gdb_index (struct dwarf_section 
 
   /* Prior versions are obsolete, and future versions may not be
      backwards compatible.  */
-  if (version != 3)
+  switch (version)
     {
+    case 3:
+      warn (_("The address table data in version 3 may be wrong.\n"));
+      break;
+    case 4:
+      break;
+    default:
       warn (_("Unsupported version %lu.\n"), (unsigned long) version);
       return 0;
     }

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

* Re: [patch] readelf --debug-dump=gdb_index support for v4
  2011-01-25 17:43   ` Jan Kratochvil
@ 2011-01-26 10:11     ` Nick Clifton
  2011-01-26 10:28       ` Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2011-01-26 10:11 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: Doug Evans, binutils

Hi Jan,

> binutils/
> 2011-01-25  Jan Kratochvil<jan.kratochvil@redhat.com>
> 	Doug Evans<dje@google.com>
>
> 	* dwarf.c (display_gdb_index): Support version 4, warn on version 3.

Approved - please apply.

Cheers
   Nick


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

* Re: [patch] readelf --debug-dump=gdb_index support for v4
  2011-01-26 10:11     ` Nick Clifton
@ 2011-01-26 10:28       ` Jan Kratochvil
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kratochvil @ 2011-01-26 10:28 UTC (permalink / raw)
  To: Nick Clifton; +Cc: Doug Evans, binutils

Hello Nick,

On Wed, 26 Jan 2011 11:02:24 +0100, Nick Clifton wrote:
> >binutils/
> >2011-01-25  Jan Kratochvil<jan.kratochvil@redhat.com>
> >	Doug Evans<dje@google.com>
> >
> >	* dwarf.c (display_gdb_index): Support version 4, warn on version 3.
> 
> Approved - please apply.

Checked in:
	http://sourceware.org/ml/binutils-cvs/2011-01/msg00145.html


Thanks,
Jan

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

end of thread, other threads:[~2011-01-26 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 17:29 [patch] readelf --debug-dump=gdb_index support for v4 Jan Kratochvil
     [not found] ` <AANLkTi=94AfA9JbzzkF9OCCUcfCKV+ic-z155onov9TA@mail.gmail.com>
2011-01-25 17:43   ` Jan Kratochvil
2011-01-26 10:11     ` Nick Clifton
2011-01-26 10:28       ` Jan Kratochvil

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