This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver 2/2] x86-linux Z0 support, and support multiple breakpoints at the same address.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 1 Apr 2010 15:29:33 +0100
- Subject: Re: [gdbserver 2/2] x86-linux Z0 support, and support multiple breakpoints at the same address.
- References: <201003262009.28654.pedro@codesourcery.com>
On Friday 26 March 2010 20:09:28, Pedro Alves wrote:
> So, I suggest we go with this patch, and try to come up
> with something clever further down the road, when we
> have a bit more experience with this, and if we find it's
> actually needed.
I've checked this in as well.
> 2010-03-26 Pedro Alves <pedro@codesourcery.com>
>
> gdb/gdbserver/
> * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
> (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
> of another, then delete the previous, and validate all
> breakpoints.
> (validate_inserted_breakpoint): New.
> (delete_disabled_breakpoints): New.
> (validate_breakpoints): New.
> (check_mem_read): Validate breakpoints before trusting their
> shadow. Delete disabled breakpoints.
> (check_mem_write): Validate breakpoints before trusting they
> should be inserted. Delete disabled breakpoints.
> * mem-break.h (validate_breakpoints):
> * server.c (handle_query): Validate breakpoints when we see a
> qSymbol query.
--
Pedro Alves