This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] print error message if (auto) disassembly failed


> Date: Thu, 16 Apr 2009 11:01:46 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
> 
> > How about
> > 
> >         #0  0x00007f8befcc8307 in ?? ()
> >         0x00007f8befcc8307:     (bad)
> > 
> > instead?  This is consistent with what "display/i $pc" displays if $pc
> > has a bad value, such as if you somehow land in the middle of an
> > instruction.
> 
> The problem is that this is not actually a "bad" instruction in this case,
> but an invalid address.

But an invalid address can sometimes (accidentally) be readable,
right?  What will we print then?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]