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

Eli Zaretskii
2009-04-16T17:52:08Z

> Date: Thu, 16 Apr 2009 10:39:18 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> I propose to change the behavior to print the error message:
>
> (gdb) core core
> warning: core file may not match specified executable file.
> Core was generated by `./crash'.
> Program terminated with signal 6, Aborted.
> #0 0x00007f8befcc8307 in ?? ()
> 0x00007f8befcc8307: Cannot access memory at address 0x7f8befcc8307
> (gdb)

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.