From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27754 invoked by alias); 18 Aug 2008 16:23:55 -0000 Received: (qmail 27744 invoked by uid 22791); 18 Aug 2008 16:23:54 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Aug 2008 16:23:04 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5C6E2983A9; Mon, 18 Aug 2008 16:23:01 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 36FA998337; Mon, 18 Aug 2008 16:23:01 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KV7VU-0005Oh-5i; Mon, 18 Aug 2008 12:23:00 -0400 Date: Mon, 18 Aug 2008 16:23:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: Ulrich Weigand , gdb-patches@sourceware.org Subject: Re: [rfc] Preferred thread event reporting: Linux native target Message-ID: <20080818162300.GA20375@caradoc.them.org> Mail-Followup-To: Pedro Alves , Ulrich Weigand , gdb-patches@sourceware.org References: <200808142150.m7ELoMaw023976@d12av02.megacenter.de.ibm.com> <200808152354.32763.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808152354.32763.pedro@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00491.txt.bz2 On Fri, Aug 15, 2008 at 11:54:31PM +0100, Pedro Alves wrote: > > > For my series to go in, every target much register at least the main > > > thread in GDB's thread tables, and as it happens, I think AIX > > > is the only target I don't have covered, or that I know of > > > no one covering. > > > > I can test AIX if necessary. Do you have a patch? > > I stratched my head quite a bit staring at aix-thread.c/sync_threadlists > and its use of ptid_cmp. I still can't tell if/what I should do there. > Also, I can't tell if rs6000_wait can ever return a ptid > different from pid_to_ptid(main_process_pid), (or -1). > > Basically, I need to: > > 1) make sure the core never gets a thread related event > that corresponds to a thread the core doesn't know > about yet. > > 2) #1 implies that every target should register the main > thread, even when debugging a single-threaded app. > rs6000-nat.c, being a ptrace based target, already has that > covered by these: > http://sourceware.org/ml/gdb-patches/2008-08/msg00170.html > http://sourceware.org/ml/gdb-patches/2008-08/msg00171.html > > 3) #2 implies that a thread_stratum layer should decorate the > main thread's ptid with thread id info, instead of adding it > again. That's thread_change_ptid from: > http://sourceware.org/ml/gdb-patches/2008-08/msg00170.html Ulrich, I don't suppose I could ask you to do this? Pedro's already done a heroic job fixing up other targets... Pedro, I know you started looking at AIX; maybe you have a patch that at least points out the places that need to change? -- Daniel Jacobowitz CodeSourcery