* mem-break.c (struct raw_breakpoint): New field shlib_disabled.
authorPedro Alves <palves@redhat.com>
Thu, 1 Apr 2010 14:26:53 +0000 (14:26 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 1 Apr 2010 14:26:53 +0000 (14:26 +0000)
commitd3bbe7a0c8af16f3fab8b1bbe2f9d96e66818c27
treefc71b14994bc13bc4bbfc3a8a6d7712063bfcb25
parent8b07ae33f0743a5dbad03cb4a76987f6db7fc38c
* 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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/mem-break.c
gdb/gdbserver/mem-break.h
gdb/gdbserver/server.c