[PATCH] Hardware breakpoint error reporting
Mike Wrighton
mike_wrighton@mentor.com
Thu May 3 16:25:00 GMT 2012
Hi,
I've attached a patch to improve error reporting for hardware breakpoint
insertion errors on remote targets. Currently the error response coming
back over RSP is discarded, and instead the default error:
"... You may have requested too many hardware breakpoints/watchpoints."
is printed, which is often not helpful to users.
Note my copyright assignment is currently in progress.
Thanks,
Mike
-------------- next part --------------
2012-05-03 Mike Wrighton <mike_wrighton@mentor.com>
* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception if
there is an error inserting hardware breakpoints and use the
error message from the target.
* gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations):
Catch this exception and print the error message contained within. Do not
print the default hardware error breakpoint message in this case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hardware-bp-errors.patch
Type: text/x-patch
Size: 3819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120503/533f71cf/attachment.bin>
More information about the Gdb-patches
mailing list