From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6FA2C38446A0; Fri, 9 Dec 2022 12:57:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FA2C38446A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670590671; bh=A4FGFwzl3LOlGXiqFt7uUOeE+XkRLBviAi9IJaoZVLk=; h=From:To:Subject:Date:From; b=nHYuCfenK3j84Oq7T+LiE1/6Blr6deJ8EZzO1t9e5dGpU6sfCiajYUYeY9Dm6Acqz 3zPxLBF6Yv6oecWI87UhKZ9wNP2XhaZNOYSf+upT+pVaLZpYQlk0HxauZuMW07DMmn EkvIube1pOTzWD1hFPevtWFIlPvomXR1/6D89K/8= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29867] New: [gdb/tdep, s390x -m31] FAIL: gdb.guile/scm-lazy-string.exp: ptr: print ptr Date: Fri, 09 Dec 2022 12:57:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D29867 Bug ID: 29867 Summary: [gdb/tdep, s390x -m31] FAIL: gdb.guile/scm-lazy-string.exp: ptr: print ptr Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tdep Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- With gdb build from trunk on s390x-linux with target board unix/-m31, I run into: ... (gdb) PASS: gdb.guile/scm-lazy-string.exp: bad length print ptr^M $1 =3D 0x804006b0 ^M (gdb) FAIL: gdb.guile/scm-lazy-string.exp: ptr: print ptr ... A minimal example is: ... $ gdb -q -batch -ex "set trace-commands on" -x gdb.in +file scm-lazy-string/scm-lazy-string +break main Breakpoint 1 at 0x4005d2: file scm-lazy-string.c, line 23. +run=20 Breakpoint 1, main () at scm-lazy-string.c:23 23 const char *ptr =3D "pointer"; +step 24 const char array[] =3D "array"; +print ptr $1 =3D 0x804006b0 ... If we delete the breakpoint after running to it, we have instead the expect= ed: ... $ gdb -q -batch -ex "set trace-commands on" -x gdb.in +file scm-lazy-string +break main Breakpoint 1 at 0x4005d2: file scm-lazy-string.c, line 23. +run=20 Breakpoint 1, main () at scm-lazy-string.c:23 23 const char *ptr =3D "pointer"; +delete +step 24 const char array[] =3D "array"; +print ptr $1 =3D 0x4006b0 "pointer" ... --=20 You are receiving this mail because: You are on the CC list for the bug.=