[PATCH] Let gdbserver doesn't tell GDB it support target-side breakpoint conditions and commands if it doesn't support 'Z' packet

Pedro Alves palves@redhat.com
Thu Jan 9 18:36:00 GMT 2014


On 12/12/2013 12:55 PM, Pedro Alves wrote:
> 2013-12-12  Pedro Alves  <palves@redhat.com>
> 	    Hui Zhu  <hui@codesourcery.com>
> 
> 	PR gdb/16101
> 	* breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
> 	bp_err_string.  Don't mark the location shlib_disabled if the
> 	error thrown wasn't a generic or memory error.  Catch errors
> 	thrown while inserting breakpoints in overlayed code.  Output
> 	error message of software breakpoints.
> 	* remote.c (remote_insert_breakpoint): If this breakpoint has
> 	target-side commands but this stub doesn't support Z0 packets,
> 	throw NOT_SUPPORTED_ERROR error.
> 	* exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
> 	* target.h (target_insert_breakpoint): Extend comment.
> 	(target_insert_hw_breakpoint): Add comment.

I've pushed this one in.

-- 
Pedro Alves



More information about the Gdb-patches mailing list