This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Let gdbserver doesn't tell GDB it support target-side breakpoint conditions and commands if it doesn't support 'Z' packet
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Cc: Doug Evans <xdje42 at gmail dot com>, Hui Zhu <hui_zhu at mentor dot com>
- Date: Thu, 09 Jan 2014 18:36:13 +0000
- Subject: Re: [PATCH] Let gdbserver doesn't tell GDB it support target-side breakpoint conditions and commands if it doesn't support 'Z' packet
- Authentication-results: sourceware.org; auth=none
- References: <5265022F dot 8060203 at mentor dot com> <52654A2C dot 9010202 at redhat dot com> <529707C7 dot 4040504 at mentor dot com> <5298AE7C dot 6020607 at redhat dot com> <529C80D2 dot 2080608 at mentor dot com> <529C9B42 dot 20600 at redhat dot com> <529D62F7 dot 80701 at mentor dot com> <52A22582 dot 8040509 at redhat dot com> <52A40015 dot 207 at mentor dot com> <52A61E86 dot 3020005 at redhat dot com> <m31u1lvimb dot fsf at sspiff dot org> <52A9B236 dot 5060004 at redhat dot com>
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