diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-01 14:26:53 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-01 14:26:53 +0000 |
commit | d3bbe7a0c8af16f3fab8b1bbe2f9d96e66818c27 (patch) | |
tree | fc71b14994bc13bc4bbfc3a8a6d7712063bfcb25 /gdb/gdbserver/mem-break.h | |
parent | 8b07ae33f0743a5dbad03cb4a76987f6db7fc38c (diff) | |
download | gdb-d3bbe7a0c8af16f3fab8b1bbe2f9d96e66818c27.zip gdb-d3bbe7a0c8af16f3fab8b1bbe2f9d96e66818c27.tar.gz gdb-d3bbe7a0c8af16f3fab8b1bbe2f9d96e66818c27.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/mem-break.h')
-rw-r--r-- | gdb/gdbserver/mem-break.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h index 01087fd..a226cc7 100644 --- a/gdb/gdbserver/mem-break.h +++ b/gdb/gdbserver/mem-break.h @@ -104,4 +104,8 @@ void delete_all_breakpoints (void); void free_all_breakpoints (struct process_info *proc); +/* Check if breakpoints still seem to be inserted in the inferior. */ + +void validate_breakpoints (void); + #endif /* MEM_BREAK_H */ |