This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/17642] New: [7.8 regression] internal-error: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' failed.
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 24 Nov 2014 16:30:18 +0000
- Subject: [Bug symtab/17642] New: [7.8 regression] internal-error: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' failed.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17642
Bug ID: 17642
Summary: [7.8 regression] internal-error:
resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type)
> 0' failed.
Product: gdb
Version: 7.8
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-linux-gnu
cat >2.c <<EOH
struct b;
struct c {
struct b *bp;
} c;
int main(void) { return 0; }
EOH
cat >2b.c <<EOH
struct b {
int a[0];
} use_b;
EOH
gcc -o 2 2.c 2b.c -Wall -g
# gcc-4.9.2-1.fc21.x86_64
gdb ./2 -ex 'p *c.bp'
# 520c7b56ac91e91120c59d7a85466ec9394277cf
gdbtypes.c:1811: internal-error: resolve_dynamic_struct: Assertion
`TYPE_NFIELDS (type) > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Regression since:
commit 012370f6818657a816df1463ee71ca4e4ee40b33
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 8 11:26:44 2014 -0600
handle VLA in a struct or union
Bugreport:
Regression with gdb scripts for Linux kernel
https://sourceware.org/ml/gdb/2014-08/msg00127.html
It is another missing check_typedef().
--
You are receiving this mail because:
You are on the CC list for the bug.