From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1983) id B4CC83858D20; Thu, 25 Apr 2024 22:05:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4CC83858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1714082709; bh=/CBR/r7RQpGXbry86tDj+d7aUHNxciEIjX3oWaJAgV4=; h=From:To:Subject:Date:From; b=WgziaHQbyxp1Llwp5BbX+1FFp3fo7OtUoAuxyeI9b2jQW4rl7alZNI3FJXB/QATBX uoI01e3mVLh0ROgtEmru/oXn3DJ1QOf0putZB+O/ft8/cPLinfmnfteOqAnYLe6vd8 DUp0/ssKFc41MiDvrZWjeT+/qElPrm5MLYnZFTQU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Carl Love To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix end_sequence addresses for dw2-lines.exp X-Act-Checkin: binutils-gdb X-Git-Author: Carl Love X-Git-Refname: refs/heads/master X-Git-Oldrev: dffb4a0784f401c2aa20446abb651a4e19f34a44 X-Git-Newrev: a99345fcd086f3057d0ca4970908a0ac2e00b06a Message-Id: <20240425220509.B4CC83858D20@sourceware.org> Date: Thu, 25 Apr 2024 22:05:09 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da99345fcd086= f3057d0ca4970908a0ac2e00b06a commit a99345fcd086f3057d0ca4970908a0ac2e00b06a Author: Carl Love Date: Wed Apr 24 14:14:10 2024 -0400 Fix end_sequence addresses for dw2-lines.exp =20 The patch: =20 From f0d556d14b1d1c3f8e2f9c13b08adca22e1b8c9c Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 17 Apr 2024 12:55:00 +0200 Subject: [PATCH] [gdb/testsuite] Fix end_sequence addresses =20 I noticed in test-case gdb.reverse/map-to-same-line.exp, that the end= of main: ... 00000000004102c4 : 4102c4: 52800000 mov w0, #0x0 = // #0 4102c8: 9100c3ff add sp, sp, #0x30 4102cc: d65f03c0 ret ... is not described by the line table: ... =20 =20 The regression failure on PowerPC is due to the change in file dw2-lines.exp, =20 - DW_LNE_set_address bar_label_5 + DW_LNE_set_address "$main_start + $main_len" =20 The label bar_label_5 is in function bar, not function main. The new set address should have been $bar_start + $bar_len. Diff: --- gdb/testsuite/gdb.dwarf2/dw2-lines.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp b/gdb/testsuite/gdb.dwa= rf2/dw2-lines.exp index 85d5e9c8afb..af5b6b71768 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-lines.exp @@ -104,7 +104,7 @@ proc test_1 { _cv _cdw64 _lv _ldw64 {_string_form ""}} { line [line_for bar_label_4] DW_LNS_copy =20 - DW_LNE_set_address "$main_start + $main_len" + DW_LNE_set_address "$bar_start + $bar_len" DW_LNE_end_sequence } }