This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] print error message if (auto) disassembly failed
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 16 Apr 2009 20:52:10 +0300
- Subject: Re: [RFA] print error message if (auto) disassembly failed
- References: <20090416173918.GP7557@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.