From ae13219ef81570640d856de602d606752f1b562a Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 2 Jul 2007 15:35:36 +0000 Subject: * 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. --- gdb/gdbserver/mem-break.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/gdbserver/mem-break.c') 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); +} -- cgit v1.1