Fix 7.8 regression: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' ...
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 13 Dec 2014 14:31:59 +0000 (15:31 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 13 Dec 2014 14:31:59 +0000 (15:31 +0100)
commit5537b577695dd5cd72395590d7ebd7aa92ee856a
treee6056d71387242223a6d42b4b8d384c9c07612e0
parent14aba1ac0d583ebd77b7645f88308d75c0a69d0f
Fix 7.8 regression: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' (PR 17642)

https://sourceware.org/bugzilla/show_bug.cgi?id=17642

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

That big change after "else" is just reindentation.

gdb/ChangeLog
2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>

PR symtab/17642
* gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
TYPE if not TYPE_CODE_TYPEDEF.

gdb/testsuite/ChangeLog
2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>

PR symtab/17642
* gdb.base/vla-stub-define.c: New file.
* gdb.base/vla-stub.c: New file.
* gdb.base/vla-stub.exp: New file.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/vla-stub-define.c [new file with mode: 0644]
gdb/testsuite/gdb.base/vla-stub.c [new file with mode: 0644]
gdb/testsuite/gdb.base/vla-stub.exp [new file with mode: 0644]
This page took 0.026856 seconds and 4 git commands to generate.