From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC4BC3874753; Thu, 30 Jun 2022 12:56:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC4BC3874753 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29294] [REG 11.2->12.1] Internal error when stepping into a function Date: Thu, 30 Jun 2022 12:56:57 +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: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 12:56:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29294 --- Comment #8 from Tom de Vries --- This seems to fix it: ... diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 43a52698b71..11d75ced602 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -636,7 +636,10 @@ cp_find_class_member (struct type **self_p, int *field= no, for (i =3D TYPE_N_BASECLASSES (self); i < len; i++) { - LONGEST bitpos =3D self->field (i).loc_bitpos (); + field &f =3D self->field (i); + if (f.loc_kind () !=3D FIELD_LOC_KIND_BITPOS) + continue; + LONGEST bitpos =3D f.loc_bitpos (); QUIT; if (offset =3D=3D bitpos) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=