diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-07-02 15:35:36 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-07-02 15:35:36 +0000 |
commit | ae13219ef81570640d856de602d606752f1b562a (patch) | |
tree | 253787951832584267f55b893cb5e8a00180e7f5 /gdb/gdbserver/inferiors.c | |
parent | 741d6ea85b096ca043859a71ae022ad160a64eec (diff) | |
download | gdb-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/inferiors.c')
-rw-r--r-- | gdb/gdbserver/inferiors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index 63587e5..6262d7e 100644 --- a/gdb/gdbserver/inferiors.c +++ b/gdb/gdbserver/inferiors.c @@ -64,6 +64,11 @@ for_each_inferior (struct inferior_list *list, } } +/* When debugging a single-threaded program, the threads list (such as + it is) is indexed by PID. When debugging a multi-threaded program, + we index by TID. This ugly routine replaces the + first-debugged-thread's PID with its TID. */ + void change_inferior_id (struct inferior_list *list, unsigned long new_id) |