diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-12-18 21:58:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-12-18 21:58:01 +0000 |
commit | b65d95c5767b2c5bc8c702eb566dd2672abe9a43 (patch) | |
tree | 3428016163faf27d505cff2ad71e634fe21d1a4c /gdb/gdbserver/thread-db.c | |
parent | 0205c1752cf6a2d0c51cc4ea0ebadd480a45350c (diff) | |
download | gdb-b65d95c5767b2c5bc8c702eb566dd2672abe9a43.zip gdb-b65d95c5767b2c5bc8c702eb566dd2672abe9a43.tar.gz gdb-b65d95c5767b2c5bc8c702eb566dd2672abe9a43.tar.bz2 |
* linux-low.c (linux_wait_for_event): Update messages. Do not
reinsert auto-delete breakpoints.
* mem-break.c (struct breakpoint): Change return type of handler to
int.
(set_breakpoint_at): Update handler type.
(reinsert_breakpoint_handler): Return 1 instead of calling
delete_breakpoint.
(reinsert_breakpoint_by_bp): Check for the original breakpoint before
setting a new one.
(check_breakpoints): Delete auto-delete breakpoints and return 2.
* mem-break.h (set_breakpoint_at): Update handler type.
* thread-db.c (thread_db_create_event, thread_db_create_event): Update.
* win32-low.c (auto_delete_breakpoint): New.
(get_child_debug_event): Use it.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r-- | gdb/gdbserver/thread-db.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index 1869dbd..3128338 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -130,7 +130,7 @@ thread_db_state_str (td_thr_state_e state) } #endif -static void +static int thread_db_create_event (CORE_ADDR where) { td_event_msg_t msg; @@ -159,14 +159,18 @@ thread_db_create_event (CORE_ADDR where) /* msg.event == TD_EVENT_CREATE */ find_new_threads_callback (msg.th_p, NULL); + + return 0; } #if 0 -static void +static int thread_db_death_event (CORE_ADDR where) { if (debug_threads) fprintf (stderr, "Thread death event.\n"); + + return 0; } #endif |