From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 163D3385801E; Wed, 3 Jan 2024 14:08:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 163D3385801E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704290937; bh=eoZMCtfyuWe8wqOz1zkENv4Diq7hwwOnkFLxlDWwy38=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mr+LLvN9jW1iWqTDTY+09RG0VWCRnUDr6w3HyO0UQch08VOgH0T+LgMMmH3BFYzjr kv2Godg6l1Nfv0BFifLDy4SCA6//teHLMOEt+7C6Lg1HhT0YJbZg9LajjcZeVi4/OU aSbP3T2B9TNsCyqQVYLUpmAwB0JMngzT29SXo63I= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/18905] Wrong value displayed when dereferencing list::iterators Date: Wed, 03 Jan 2024 14:08:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone cc 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D18905 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0 CC| |ssbssa at sourceware dot o= rg Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #1 from Hannes Domani --- I can reproduce the problem with gdb-7.8.2: ``` (gdb) p it1 $1 =3D {_M_node =3D 0x3577c8} (gdb) p it2 $2 =3D {_M_node =3D 0x3577f0} (gdb) p *it1 $3 =3D (int &) @0x3577f8: 2 (gdb) p *it2 $4 =3D (int &) @0x3577f8: 2 ``` But no longer with gdb-8.0 or newer: ``` (gdb) p it1 $1 =3D {_M_node =3D 0x5477c8} (gdb) p it2 $2 =3D {_M_node =3D 0x5477f0} (gdb) p *it1 $3 =3D (int &) @0x5477d0: 1 (gdb) p *it2 $4 =3D (int &) @0x5477f8: 2 ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=