From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57063 invoked by alias); 10 Jul 2017 09:43:13 -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 54067 invoked by uid 89); 10 Jul 2017 09:43:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Jul 2017 09:43:08 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0E00F80E72; Mon, 10 Jul 2017 09:43:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0E00F80E72 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0E00F80E72 Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 64B4460DD7; Mon, 10 Jul 2017 09:43:06 +0000 (UTC) Subject: Re: gdb / thread_db / multiple ABI question To: sellcey@cavium.com, gdb@sourceware.org References: <201707071820.v67IKXSr017199@sellcey-dt.caveonetworks.com> <306e2da9-4fea-76a2-e130-f6661f9826e8@redhat.com> <1499459428.13519.35.camel@cavium.com> From: Pedro Alves Message-ID: <1f97046b-2ffd-b4ac-6626-412b75a54dd5@redhat.com> Date: Mon, 10 Jul 2017 09:43:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1499459428.13519.35.camel@cavium.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-07/txt/msg00010.txt.bz2 > OK, setting libthread-db-search-path and debug libthread-db got me > a bit further. I don't get any errors or warnings about not being > able to find or load libthread_db. It's still not reading everything > correctly though: > > (gdb) info threads > Found 0 new threads in iteration 0. > Id Target Id Frame > * 3 Thread 0xf739ef70 (LWP 8660) 0x00400680 in doSomeThing () > 4 Thread 0xf69bf490 (LWP 8662) warning: Couldn't find general-purpose registers in core file. > PC register is not available Do you get that same warning without libthread_db? It sounds more like an issue on the gdb<->bfd side than on the libthread_db side of things. (Put a breakpoint on "warning". I believe it comes from corelow.c:get_core_register_section.) Thanks, Pedro Alves