From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14720 invoked by alias); 4 Aug 2010 17:40:09 -0000 Received: (qmail 14710 invoked by uid 22791); 4 Aug 2010 17:40:08 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Aug 2010 17:39:57 +0000 Received: (qmail 1114 invoked from network); 4 Aug 2010 17:39:55 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Aug 2010 17:39:55 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: pthread_t ids of threads not showed by "thread info" Date: Wed, 04 Aug 2010 17:40:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-11-rt; KDE/4.4.2; x86_64; ; ) Cc: "Ulrich Weigand" , Mark Kettenis , stefano.sabatini-lala@poste.it References: <201008041653.o74GrjQv001751@d12av02.megacenter.de.ibm.com> <201008041814.45644.pedro@codesourcery.com> In-Reply-To: <201008041814.45644.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008041839.51391.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00030.txt.bz2 On Wednesday 04 August 2010 18:14:44, Pedro Alves wrote: > On Wednesday 04 August 2010 17:53:45, Ulrich Weigand wrote: > > > You seem to have missed s390-tdep.c here (note that Linux is the > > only supported OS on that platform, therefore there is no init_abi.) > > Thanks. We can then just call linux_init_abi at the top of > s390_gdbarch_init, right? Or rather, a bit further down, where the gdbarch is actually created, like so? (tested by building an --enable-targets=all gdb, on x86_64-linux) -- Pedro Alves 2010-08-04 Pedro Alves * s390-tdep.c: Include linux-tdep.h. (s390_gdbarch_init): Call linux_init_abi. --- gdb/s390-tdep.c | 2 ++ 1 file changed, 2 insertions(+) Index: src/gdb/s390-tdep.c =================================================================== --- src.orig/gdb/s390-tdep.c 2010-08-04 18:16:31.000000000 +0100 +++ src/gdb/s390-tdep.c 2010-08-04 18:16:24.000000000 +0100 @@ -2829,6 +2829,8 @@ s390_gdbarch_init (struct gdbarch_info i tdep->abi = tdep_abi; gdbarch = gdbarch_alloc (&info, tdep); + linux_init_abi (info, gdbarch); + set_gdbarch_believe_pcc_promotion (gdbarch, 0); set_gdbarch_char_signed (gdbarch, 0);