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


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