From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5A1773857C76; Sun, 6 Mar 2022 16:37:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A1773857C76 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27005] ../../gdb/gdb/gdbtypes.c:5443: internal-error: Unexpected type field location kind: 4 Date: Sun, 06 Mar 2022 16:37:56 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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: cc 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: Sun, 06 Mar 2022 16:37:57 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27005 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #4 from Tom Tromey --- I had to install some system debuginfo (for libstdc++) to get the watchpoint to parse. Thanks to debuginfod this was super easy. After this, on Fedora 34, with git gdb, it seems to work: (gdb) watch std::ios_base::Init::_S_refcount Hardware watchpoint 2: std::ios_base::Init::_S_refcount (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /tmp/THR=20 Error in re-setting breakpoint 2: No type "ios_base" within class or namesp= ace "std". Error in re-setting breakpoint 2: No type "ios_base" within class or namesp= ace "std". Error in re-setting breakpoint 2: No type "ios_base" within class or namesp= ace "std". Error in re-setting breakpoint 2: No type "ios_base" within class or namesp= ace "std". [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7ffff7a38640 (LWP 53578)] [New Thread 0x7ffff7237640 (LWP 53579)] Thread 2 "THR" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff7a38640 (LWP 53578)] 0x00007ffff7ec2b7a in std::ostream::sentry::sentry (this=3D0x7ffff7a37d20, __os=3D...) at /usr/src/debug/gcc-11.2.1-9.fc34.x86_64/obj-x86_64-redhat-linux/x86_64-redh= at-linux/libstdc++-v3/include/bits/ostream.tcc:51 51 if (__os.tie() && __os.good()) --=20 You are receiving this mail because: You are on the CC list for the bug.=