diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:34:23 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:34:23 +0000 |
commit | 0ec9a092fd18d6b1c38ae330194bf90534a9b681 (patch) | |
tree | 93feedf6bfddc1622c45699c28bafaa000874e0c /gdb/linux-nat.c | |
parent | 6d820c5c12929725ad4fdc7e9e8b3b02af1df932 (diff) | |
download | gdb-0ec9a092fd18d6b1c38ae330194bf90534a9b681.zip gdb-0ec9a092fd18d6b1c38ae330194bf90534a9b681.tar.gz gdb-0ec9a092fd18d6b1c38ae330194bf90534a9b681.tar.bz2 |
* linux-thread-db.c: Include "linux-nat.h".
(check_for_thread_db): New function, split out from
thread_db_new_objfile. Remove dead check for active
thread_db on inapplicable targets.
(thread_db_new_objfile): Call check_for_thread_db.
* Makefile.in (linux-thread-db.o): Update.
* linux-nat.c (child_post_attach): Call check_for_thread_db.
(linux_child_post_startup_inferior): Likewise.
(lin_lwp_attach_lwp): Call target_post_attach instead of
child_post_attach.
* linux-nat.h (check_for_thread_db): New prototype.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 88e0d7d..658c984 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -334,12 +334,14 @@ void child_post_attach (int pid) { linux_enable_event_reporting (pid_to_ptid (pid)); + check_for_thread_db (); } static void linux_child_post_startup_inferior (ptid_t ptid) { linux_enable_event_reporting (ptid); + check_for_thread_db (); } int @@ -963,7 +965,7 @@ lin_lwp_attach_lwp (ptid_t ptid, int verbose) gdb_assert (pid == GET_LWP (ptid) && WIFSTOPPED (status) && WSTOPSIG (status)); - child_post_attach (pid); + target_post_attach (pid); lp->stopped = 1; |