From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27191 invoked by alias); 3 Feb 2003 16:58:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26944 invoked from network); 3 Feb 2003 16:58:57 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.104) by 172.16.49.205 with SMTP; 3 Feb 2003 16:58:57 -0000 Received: from shell.TheWorld.com (DPierce@shell01.TheWorld.com [199.172.62.241]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id LAA25218; Mon, 3 Feb 2003 11:58:56 -0500 Received: from localhost (qqi@localhost) by shell.TheWorld.com (8.9.3/8.9.3) with ESMTP id LAA113910370; Mon, 3 Feb 2003 11:58:56 -0500 (EST) X-Authentication-Warning: shell01.TheWorld.com: qqi owned process doing -bs Date: Mon, 03 Feb 2003 16:58:00 -0000 From: Quality Quorum To: Andrew Cagney cc: gdb@sources.redhat.com Subject: Re: What to do with threads? In-Reply-To: <3E3D87B5.9080306@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-02/txt/msg00054.txt.bz2 On Sun, 2 Feb 2003, Andrew Cagney wrote: > Hello, > > To put it simply, how can one fix this: > > static CORE_ADDR > d10v_read_pc (ptid_t ptid) > { > .... > read_register (PC_REGNUM); > .... > } > > There are problems at many levels. Off the top of my head: > > - ptid can identify a thread and/or a LWP > - there sometimes isn't even a thread and/or a LWP > - the selected and current thread both fight over the same global data > structures > - long long term, an objective is to have gdb debug multiple processes / > ISAs > - so long term that it is probably funny, an objective is to have gdb > debugging multiple targets > > I think we've fought the frame battle and won (the casualties will take > ages to recover mind :-), the thread battle, I think, is next. Again, the battle would much easier if we will refactor to C++ ASAP. > > Andrew > Thanks, Aleksey