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

Eli Zaretskii
2009-04-16T18:16:37Z

> 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?