From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36513 invoked by alias); 10 Jul 2017 07:39:27 -0000 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 Received: (qmail 36391 invoked by uid 89); 10 Jul 2017 07:39:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Received:Mon, H*r:sk:static. X-HELO: mail-it0-f68.google.com Received: from mail-it0-f68.google.com (HELO mail-it0-f68.google.com) (209.85.214.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Jul 2017 07:39:25 +0000 Received: by mail-it0-f68.google.com with SMTP id o202so12007138itc.1 for ; Mon, 10 Jul 2017 00:39:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=x2BHj0jWGwqSq8nFSWRvAIZzOXEWvCAONMDVP236I9Q=; b=VPKGdWg4adeTSZN9qHMDqYcWM0TnwPPuSIEveDRK2QQszjakUtB1sNkNVTFBsR/YlY s+sbZPTNsYOOz9I3Gg+2hNwVYslF81ZwpbFWTVUxWVj6lZCPnA5CtWhwABN2gnvXbd+L jQP4eYqpjTYkq6HUx/8sfgjLe1VMAspy8hWedGBWv17N5bMkq1fJMVKjsTfkKDJhOHGM H5nV5Eo3TqbLBIOunbg1j8HDIyehDXFtSvyvl9ekKSvLB2G/FxEUxzBkeFJtQBdiNIet vR6rhMCyiiqxe0fkB23aDKIrULVXcgtPE/rES4vIze5F6fbK+zp+wgAFgP87ttvCkYqZ zvrQ== X-Gm-Message-State: AIVw1107BlvaJphEStoRfmRDSwtPLdcXT0fDrtRn1laYsKuPxjfvKVVx 9HOhR6ZWyG3sCZIF X-Received: by 10.107.6.69 with SMTP id 66mr1897948iog.214.1499672363958; Mon, 10 Jul 2017 00:39:23 -0700 (PDT) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id s94sm5686948ioi.20.2017.07.10.00.39.22 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 10 Jul 2017 00:39:23 -0700 (PDT) From: Yao Qi To: sellcey@cavium.com Cc: Pedro Alves , gdb@sourceware.org Subject: Re: gdb / thread_db / multiple ABI question References: <201707071820.v67IKXSr017199@sellcey-dt.caveonetworks.com> <306e2da9-4fea-76a2-e130-f6661f9826e8@redhat.com> <1499459428.13519.35.camel@cavium.com> Date: Mon, 10 Jul 2017 07:39:00 -0000 In-Reply-To: <1499459428.13519.35.camel@cavium.com> (Steve Ellcey's message of "Fri, 07 Jul 2017 13:30:28 -0700") Message-ID: <86lgnw91w9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00008.txt.bz2 Steve Ellcey writes: > I don't see any code in gdb/linux-thread-db.c that seems to be > conditional on the word size (ILP32 vs LP64). =C2=A0I also don't see Take a look at aarch64-linux-nat.c:ps_get_thread_area. It calls aarch64_ps_get_thread_area. > anything in glibc nptl-db directory that appears to be conditional on > word size. =C2=A0Things like pthread_t and=C2=A0__SIZEOF_PTHREAD_ATTR_T a= re=C2=A0 > different for the two different ABIs though. =C2=A0But that is true for x= 86 > too and things seem to be working there. =C2=A0I am not sure what (if > anything) would need to be done to libthread_db to support biarch > debugging. AArch64 linux GDB is able to debug arm-linux 32-bit program. --=20 Yao (=E9=BD=90=E5=B0=A7)