From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 880EA3858CDA for ; Sun, 12 Mar 2023 13:40:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 880EA3858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 240A01E110; Sun, 12 Mar 2023 09:40:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1678628458; bh=G9wI7s1BQLh7FVnSYTBF1HX59fL1al/yZEvOhjSJaoc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=omT96FCbE51Ib+XyFD0MBQTk7/eBDXUddykdyW11hNjLV6fEnKs8kXyvoIbh3nrWf odZ7hd7+kbRxbgqDTGOfGzCihhmxcVqbD6IePf37/vMaKydlWZ0ZEcWszpoU3/w/oz hPoTZ84MQWeeI3uY05MbrYUqYIl485ZBZ/Ei3g4w= Message-ID: Date: Sun, 12 Mar 2023 09:40:57 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 2/5] Change linetables to be objfile-independent Content-Language: en-US To: Tom Tromey Cc: gdb-patches@sourceware.org References: <20230308-submit-constify-linetable-v1-0-ca4057478141@tromey.com> <20230308-submit-constify-linetable-v1-2-ca4057478141@tromey.com> <87jzzne1vo.fsf@tromey.com> <87fsaaejnb.fsf@tromey.com> From: Simon Marchi In-Reply-To: <87fsaaejnb.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/11/23 22:24, Tom Tromey wrote: > Simon> FAIL: gdb.base/async.exp: stepi& > Simon> FAIL: gdb.base/async.exp: nexti& > Simon> FAIL: gdb.base/async.exp: finish& > Simon> FAIL: gdb.base/consecutive.exp: stopped at bp, 2nd instr (missing hex prefix) > Simon> FAIL: gdb.base/disasm-optim.exp: Disassemble main with source (pattern 2) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: disassemble /s main > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 16 line_label_1 (no disassembly for 16) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 16 line_label_2 (no disassembly for 16) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 17 line_label_3 (no disassembly for 17) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 17 line_label_4 (no disassembly for 17) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 17 line_label_5 (no disassembly for 17) > Simon> FAIL: gdb.dwarf2/dw2-disasm-over-non-stmt.exp: opt=s: check_disassembly_results 18 line_label_6 (no disassembly for 18) > Simon> FAIL: gdb.reverse/consecutive-precsave.exp: stopped at bp, 2nd instr (missing hex prefix) > Simon> FAIL: gdb.reverse/consecutive-reverse.exp: stopped at bp, 2nd instr (missing hex prefix) > > I tried these with git master and they all work fine for me. I wonder > what the difference could be. Could you run one of them perhaps & send > me the gdb.log? Maybe that would give a clue. This for instance: 68 disassemble /s main^M 69 Dump of assembler code for function main:^M 70 gdb_expect_list pattern: /disasm-optim\.c:^M 71 24/ 72 Cannot access memory at address 0x1130^M 73 (gdb) FAIL: gdb.base/disasm-optim.exp: Disassemble main with source (pattern 2) Looks like we're trying to read from the inferior at an unrelocated address. From some previous bug, I recall that you were using a system with no-PIE as a default, so that could be why you don't see it. Simon