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: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 16 Apr 2009 11:01:46 -0700
- Subject: Re: [RFA] print error message if (auto) disassembly failed
- References: <20090416173918.GP7557@adacore.com> <834owolc51.fsf@gnu.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. So I think that the "Cannot read memory at ..."
error message is more accurate.
--
Joel