From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FDDE3858D20; Fri, 17 Nov 2023 06:45:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FDDE3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700203514; bh=qL5q36S+jkdCz5Lw+o9tdX39MXUgF8jg8ZRir/cqsI0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ChkojGihxBONTh2I6ractE/bvYYFoKkfwCUJXNWNNeN0p0bHaMV5msr6BGHz9hKta 13dwKSQ4PCb+hG2HxH259vetgI2fmzoEdd1SW8jGy0OqR+T+Ri0Ti2aeW6x3GXtrmx M2y9hOzlIrFGreZQvfgLPamIbKo/b9IBcJFUR4zU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112582] Inconsistent Variable Values: Discrepancy between Source-Level and Instruction-Level Debugging Date: Fri, 17 Nov 2023 06:45:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112582 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- .cfi_def_cfa_offset 32 .loc 1 27 5 view .LVU27 movl $-5, %eax .loc 1 28 5 view .LVU28 movl $-10, %edx .loc 1 29 3 view .LVU29 // point where after `si`'s is located leaq 14(%rsp), %rsi leaq 12(%rsp), %rdi .loc 1 27 5 view .LVU30 movw %ax, 12(%rsp) .loc 1 28 3 is_stmt 1 view .LVU31 .loc 1 28 5 is_stmt 0 view .LVU32 movw %dx, 14(%rsp) .loc 1 29 3 is_stmt 1 view .LVU33 // point where step is=20 call foo ... .ascii "x\0" # DW_AT_name # DW_AT_decl_file (1, /app/example.c) # DW_AT_decl_line (0x1a) .byte 0x16 # DW_AT_decl_column .long 0x9e # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -20 .uleb128 0x3 # (DIE (0x78) DW_TAG_variable) .ascii "y\0" # DW_AT_name # DW_AT_decl_file (1, /app/example.c) # DW_AT_decl_line (0x1a) .byte 0x19 # DW_AT_decl_column .long 0x9e # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -18 Not a bug.=