From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCD383858C36; Fri, 11 Nov 2022 08:09:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCD383858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668154171; bh=NLzob9YLM7vFOZ4wm7xTm6FkbRvYq4ZM6f7Wk8X+5XU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P5mzfLGSiWSG+DfD7JtIWDzbg1MP+Gi4wHZZWtKUzAhZ5xQmgz/3Fg5ByVBfG9Hok y2HkNZ6wawt40DRRO2db5k7hxc85/5jOaKl7IaYYnho1pLwj45LdK83DXXf4Jc4PtT JWVCftXEviuJLy7k9FSKAe2kE72m5X2G1/4Ens3I= From: "yangyibiao at nju dot edu.cn" To: gdb-prs@sourceware.org Subject: [Bug backtrace/29775] An valid address cannot be reached in instruction-level stepping Date: Fri, 11 Nov 2022 08:09:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yangyibiao at nju dot edu.cn X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D29775 --- Comment #2 from Yibiao Yang --- (In reply to Tom de Vries from comment #1) > (In reply to Yibiao Yang from comment #0) > > (gdb) > > 7 __builtin_printf ("'ere I am JH\n"); >=20 > This is where the address you mention ( 0x000000000040113a ) is reached. >=20 > Because the address is at a line entry, the address is not printed. >=20 > Do "print /x $pc" here and you'll find the address. >=20 > Try for instance the setting: > ... > (gdb) set print frame-info location-and-address > ... > that forces the address to be printed also at line entries, that'll make = it > easier to keep track at which address you're at ( > https://sourceware.org/gdb/onlinedocs/gdb/Print-Settings.html ). Got it, thank you very much. --=20 You are receiving this mail because: You are on the CC list for the bug.=