From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 207573858C2C; Thu, 14 Dec 2023 16:46:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 207573858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702572385; bh=jzuwtI48MOpHFaoOz3EUj+9mUjQYBidR1UaZnTWL3V4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bRmTxt5Bm+NfDXYrLqebfHogqwUQWdKO1mPHteF5dxyj7wHV7QzN/cLz2h8f0zhRb MdyJ907ginfdrVfTrh6AUDN3reUZSg+bdYQX8eyXklK0DLiXwAm1zUJnQipnmppjzn Ynvub+Mq+Gm0ty3M3yL4G4L55WWV6RvPIUWO0o7I= From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug tdep/14673] Pseudo registers aren't updated in stack unwind Date: Thu, 14 Dec 2023 16:46:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D14673 Simon Marchi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Simon Marchi --- I believe this is fixed by my pseudo register series, that commit and the 2= 0 or so previous ones: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Df5d420bbcee= b1d5065c3d91dd7c6c1e43f855ca1 When running: ./gdb -batch -nx -q --data-directory=3Ddata-directory test \=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -ex 'b foo' -ex r -ex bt \ -ex 'frame 0' \ -ex 'p/x $sp' -ex 'p/x $rsp' -ex 'p/x $esp' \ -ex 'frame 1' \ -ex 'p/x $sp' -ex 'p/x $rsp' -ex 'p/x $esp' Before, I get: #0 foo (x=3D2) at test.c:3 3 return x + 1; $1 =3D 0x7fffffffe180 $2 =3D 0x7fffffffe180 $3 =3D 0xffffe180 #1 0x0000555555555146 in main () at test.c:8 8 foo(2); $4 =3D 0x7fffffffe190 $5 =3D 0x7fffffffe190 $6 =3D 0xffffe180 After, I get: #0 foo (x=3D2) at test.c:3 3 return x + 1; $1 =3D 0x7fffffffe180 $2 =3D 0x7fffffffe180 $3 =3D 0xffffe180 #1 0x0000555555555146 in main () at test.c:8 8 foo(2); $4 =3D 0x7fffffffe190 $5 =3D 0x7fffffffe190 $6 =3D 0xffffe190 >From what I can tell, from amd64-tdep.c, the eip pseudo register exists onl= y on the x32 arch, which I can't test. But if it's handled like all other dword pseudo registers, it should work as well. --=20 You are receiving this mail because: You are on the CC list for the bug.=