This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20295] GDB segfaults printing structure member
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 09 Aug 2016 10:10:52 +0000
- Subject: [Bug gdb/20295] GDB segfaults printing structure member
- Auto-submitted: auto-generated
- References: <bug-20295-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20295
--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
I managed to write a generic testcase using GDB testsuite's DWARF assembler
machinery.
I'm seeing if we can do better and print:
(gdb) p a.bitfield
$1 = <optimized out>
just like we currently print for non-bitfield fields:
(gdb) p a.intvar
$1 = <optimized out>
as
(gdb) p a.bitfield
value has been optimized out
this is considered an error and makes gdb stop processing further commands, if
you put that in a script.
--
You are receiving this mail because:
You are on the CC list for the bug.