This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: breakpoint error messages
> Date: Fri, 23 Aug 2002 11:53:15 -0400
> From: Grace Sainsbury <graces@redhat.com>
>
> The memory_error is only relevant for memory
> breakpoints, and only insert_breakpoint returns an errno (the hardware
> and catcpoint functions return -1 on error)-- so the call to strerror
> prints the error when it is relevant, and so replaces print_sys_errmsg.
Do we really want to carve in stone the current semi-buggy behavior of
-1 being returned in some of these cases? What if hardware
break/watchpoints and catchpoints code is fixed to return a meaningful
errno?