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
On Thursday 16 April 2009 22:54:26, Joel Brobecker wrote:
> > OK, but your suggested message text is too long, I think. Something
> > shorter, like "(address unreadable)" is better, IMO.
>
> I just printing the error message that has been "thrown". I don't see
> any way of printing what you want without parsing that error message.
> Do you see any?
I haven't been following the thread, so sorry if this overshoots
too far away, but, anyway, notice that there's now a MEMORY_ERROR error
class in exceptions.h. If you have access to the error exception object,
you can check on ex.error. See breakpoint.c:fetch_watchpoint_value for
a MEMORY_ERROR filtering usage.
--
Pedro Alves