X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcorelow.c;h=c53bf1df8fd80a542d940efccd5d27b419308378;hb=5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2;hp=74f660828df2b6b085f5f55b8ea433399303e4ef;hpb=75c6c844d9df37761e0e834df057b89e41816e55;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/corelow.c b/gdb/corelow.c index 74f660828d..c53bf1df8f 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -314,7 +314,7 @@ add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg) ptid = ptid_t (pid, lwpid, 0); - add_thread (ptid); + add_thread (inf->process_target (), ptid); /* Warning, Will Robinson, looking at BFD private data! */ @@ -472,7 +472,7 @@ core_target_open (const char *arg, int from_tty) { inferior_appeared (current_inferior (), CORELOW_PID); inferior_ptid = ptid_t (CORELOW_PID); - add_thread_silent (inferior_ptid); + add_thread_silent (target, inferior_ptid); } else switch_to_thread (thread); @@ -540,7 +540,7 @@ core_target_open (const char *arg, int from_tty) /* Current thread should be NUM 1 but the user does not know that. If a program is single threaded gdb in general does not mention anything about threads. That is why the test is >= 2. */ - if (thread_count () >= 2) + if (thread_count (target) >= 2) { try { @@ -944,7 +944,7 @@ core_target::pid_to_str (ptid_t ptid) /* Otherwise, this isn't a "threaded" core -- use the PID field, but only if it isn't a fake PID. */ - inf = find_inferior_ptid (ptid); + inf = find_inferior_ptid (this, ptid); if (inf != NULL && !inf->fake_pid_p) return normal_pid_to_str (ptid);