diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2016-09-28 20:04:34 +0100 |
---|---|---|
committer | Peter Griffin <peter.griffin@linaro.org> | 2016-09-28 20:04:34 +0100 |
commit | 1b8847335bffea4b8b8ce6e7d1daa3b710172073 (patch) | |
tree | 1e01fe4c507d46c438e1d9809740abda47138a2f | |
parent | ecb2ff5e8465579a49643f6c2ebead715a68784b (diff) |
gdb/linux-kthrea: minor fixups
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
-rw-r--r-- | gdb/linux-kthread.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/linux-kthread.c b/gdb/linux-kthread.c index fc21ae9c5c..47d4f593ba 100644 --- a/gdb/linux-kthread.c +++ b/gdb/linux-kthread.c @@ -881,7 +881,7 @@ lkd_proc_refresh_info (int cur_core) last_pid, process_counts[0], process_counts[1]); if (do_invalidate) - lkd_proc_invalidate_list (); + lkd_proc_invalidate_list (); /* Update the process_list now, so that init_task is in there. */ (void) lkd_proc_get_list (); @@ -1075,9 +1075,9 @@ lkd_proc_get_by_ptid (ptid_t ptid) long lwp = ptid_get_lwp(ptid); process_t *ps; - // DEBUG (INIT, 1, "()+\n"); + DEBUG (INIT, 1, "()+\n"); - //check list is valid + /* check list is valid */ gdb_assert(!lkd_private.proc_list_invalid); /* We must ensure that we don't try to return @@ -1169,8 +1169,6 @@ linux_kthread_activate (struct objfile *objfile) DEBUG (INIT, 1, "()+\n"); - printf_filtered ("%s:%d\n",__func__, __LINE__); - /* Skip if the thread stratum has already been activated. */ if (linux_kthread_active) return 0; @@ -1182,7 +1180,6 @@ linux_kthread_activate (struct objfile *objfile) /* Verify that this represents an appropriate linux target */ - /* Initialise any data before we push */ memset (&lkd_private, 0, sizeof(lkd_private)); @@ -1559,7 +1556,6 @@ _initialize_linux_kthread (void) observer_attach_inferior_created (linux_kthread_inferior_created); - target_thread_ptid = null_ptid; observer_attach_target_thread_changed (linux_awareness_target_thread_changed); |