aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/mem-break.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-07-02 15:35:36 +0000
committerDaniel Jacobowitz <drow@false.org>2007-07-02 15:35:36 +0000
commitae13219ef81570640d856de602d606752f1b562a (patch)
tree253787951832584267f55b893cb5e8a00180e7f5 /gdb/gdbserver/mem-break.c
parent741d6ea85b096ca043859a71ae022ad160a64eec (diff)
downloadgdb-ae13219ef81570640d856de602d606752f1b562a.zip
gdb-ae13219ef81570640d856de602d606752f1b562a.tar.gz
gdb-ae13219ef81570640d856de602d606752f1b562a.tar.bz2
* inferiors.c (change_inferior_id): Add comment.
* linux-low.c (check_removed_breakpoint): Add an early prototype. Improve debug output. (linux_attach): Doc update. (linux_detach_one_process, linux_detach): Clean up before releasing each process. (send_sigstop, wait_for_sigstop): Improve comments and debug output. * linux-low.h (struct process_info): Doc improvement. * mem-break.c (delete_all_breakpoints): New. * mem-break.h (delete_all_breakpoints): New prototype. * thread-db.c (find_first_thread): New. (thread_db_create_event): Call it instead of thread_db_find_new_threads. Clean up unused variables. (maybe_attach_thread): Remove first thread handling. (thread_db_find_new_threads): Use find_first_thread. (thread_db_get_tls_address): Likewise.
Diffstat (limited to 'gdb/gdbserver/mem-break.c')
-rw-r--r--gdb/gdbserver/mem-break.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c
index 19233e0..20281af 100644
--- a/gdb/gdbserver/mem-break.c
+++ b/gdb/gdbserver/mem-break.c
@@ -283,3 +283,12 @@ check_mem_write (CORE_ADDR mem_addr, unsigned char *buf, int mem_len)
memcpy (buf + buf_offset, breakpoint_data + copy_offset, copy_len);
}
}
+
+/* Delete all breakpoints. */
+
+void
+delete_all_breakpoints (void)
+{
+ while (breakpoints)
+ delete_breakpoint (breakpoints);
+}