[gdbserver 2/2] x86-linux Z0 support, and support multiple breakpoints at the same address.
Pedro Alves
pedro@codesourcery.com
Thu Apr 1 14:29:00 GMT 2010
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
More information about the Gdb-patches
mailing list