Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Advice on fixing gdb/12528
@ 2011-03-11 17:09 Paul Pluzhnikov
  2011-03-11 18:27 ` Tom Tromey
  0 siblings, 1 reply; 17+ messages in thread
From: Paul Pluzhnikov @ 2011-03-11 17:09 UTC (permalink / raw)
  To: gdb-patches ml; +Cc: Doug Evans

Greetings,

Doug and myself just independently hit
http://sourceware.org/bugzilla/show_bug.cgi?id=12528 (and 12568).

I would like advice on fixing it.

I know that in general GDB can not ignore code at location 0,
but it appears inevitable that it must do so on platforms where
- it is known that no code can execute there, and
- linker relocates debug info to address 0 to indicate that
  the corresponding code has been discarded.

So would something like:

 case DW_LNE_set_address:
   address = read_address (abfd, line_ptr, cu, &bytes_read);
   if (!target->to_valid_code_address (address)) {
      // this debug line info corresponds to function that has
      // been GCd by the linker.  Skip to end_sequence.
   }

in dwarf_decode_lines() ?

Thanks,
-- 
Paul Pluzhnikov


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

end of thread, other threads:[~2011-03-16 17:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-11 17:09 Advice on fixing gdb/12528 Paul Pluzhnikov
2011-03-11 18:27 ` Tom Tromey
2011-03-14 21:16   ` [patch] " Paul Pluzhnikov
2011-03-15  3:16     ` Jan Kratochvil
2011-03-15  5:26       ` Paul Pluzhnikov
2011-03-15 15:35         ` Tom Tromey
2011-03-15 15:45           ` Jan Kratochvil
2011-03-15 16:00             ` Paul Pluzhnikov
2011-03-15 18:50         ` Jan Kratochvil
2011-03-15 19:12           ` Paul Pluzhnikov
2011-03-15 19:18             ` Jan Kratochvil
2011-03-15 19:41               ` Paul Pluzhnikov
2011-03-15 23:26                 ` Jan Kratochvil
2011-03-16  0:13                   ` Paul Pluzhnikov
2011-03-16  8:20                     ` Jan Kratochvil
2011-03-16 17:43                       ` Paul Pluzhnikov
2011-03-16 17:52                         ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox