From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38675 invoked by alias); 30 Oct 2017 13:38:37 -0000 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 Received: (qmail 38654 invoked by uid 89); 30 Oct 2017 13:38:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SBL,SPF_PASS autolearn=no version=3.3.2 spammy=fits, H*r:14.3.361, H*r:ip*14.3.361.1, H*RU:14.3.361.1 X-Spam-User: qpsmtpd, 2 recipients X-HELO: 5pmail.ess.barracuda.com Received: from 5pmail.ess.barracuda.com (HELO 5pmail.ess.barracuda.com) (64.235.154.203) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Oct 2017 13:38:35 +0000 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1403.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Mon, 30 Oct 2017 13:37:41 +0000 Received: from [10.20.78.122] (10.20.78.122) by mips01.mipstec.com (10.20.43.31) with Microsoft SMTP Server id 14.3.361.1; Mon, 30 Oct 2017 06:32:25 -0700 Date: Mon, 30 Oct 2017 13:38:00 -0000 From: "Maciej W. Rozycki" To: Pedro Alves CC: Djordje Todorovic , , , "nemanja.popov@rt-rk.com" , , "Ananthakrishna Sowda (asowda)" , Nikola Prica Subject: Re: [PATCH 0/3] Fix issues with writing Linux core PRSTATUS note on MIPS o32, n32 and n64 into core file In-Reply-To: Message-ID: References: <74618d56-fa31-4cfe-329f-6a9078bac92b@rt-rk.com> <724f0bc9-6744-a915-d19d-77db7e9ce514@rt-rk.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-BESS-ID: 1509370656-321459-5577-220049-2 X-BESS-VER: 2017.12-r1709122024 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186420 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status:1 X-SW-Source: 2017-10/txt/msg00889.txt.bz2 On Fri, 27 Oct 2017, Pedro Alves wrote: > > (gdb) PASS: gdb.threads/tls-core.exp: load generated corefile > > p/x foo > > Cannot find thread-local storage for LWP 8829, executable file .../gdb/testsuite/outputs/gdb.threads/tls-core/tls-core: > > Cannot find thread-local variables on this target > > (gdb) FAIL: gdb.threads/tls-core.exp: print thread-local storage variable > > > > which I am fairly sure that is related (along with the "core file may not > > match specified executable file." message) to an attempt to use native > > `libthread_db'. > > The "core file may not match specified executable file." sounds like > something else. I think you'll get that if the program name recorded > in the core data structure is not the same as the name of the executable. Given that this is not the case here, as the basename of the program is supposed to be `tls-core' and that fits in the (regrettable) 16-character limit for the executable name in Linux core files, there must be something odd going on here. > Try setting a breakpoint on core_file_matches_executable_p. I will, thanks for the hint. Maciej