This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 012370f6818657a816df1463ee71ca4e4ee40b33
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 4 Jun 2014 20:48:57 -0000
- Subject: gdb and binutils branch master updated. 012370f6818657a816df1463ee71ca4e4ee40b33
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 012370f6818657a816df1463ee71ca4e4ee40b33 (commit)
via 92e2a17f9b145d35b4a9a2273612d323ccdc9cac (commit)
from c0939df1ce443e82c44188ff988acbb45780bfd7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=012370f6818657a816df1463ee71ca4e4ee40b33
commit 012370f6818657a816df1463ee71ca4e4ee40b33
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 8 11:26:44 2014 -0600
handle VLA in a struct or union
It is valid in GNU C to have a VLA in a struct or union type, but gdb
did not handle this.
This patch adds support for these cases in the obvious way.
Built and regtested on x86-64 Fedora 20.
New tests included.
2014-06-04 Tom Tromey <tromey@redhat.com>
* ada-lang.c (ada_template_to_fixed_record_type_1): Use
value_from_contents_and_address_unresolved.
(ada_template_to_fixed_record_type_1): Likewise.
(ada_which_variant_applies): Likewise.
* value.h (value_from_contents_and_address_unresolved): Declare.
* value.c (value_from_contents_and_address_unresolved): New
function.
* gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
<TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
(resolve_dynamic_struct, resolve_dynamic_union): New functions.
2014-06-04 Tom Tromey <tromey@redhat.com>
* gdb.base/vla-datatypes.exp: Add tests for VLA-in-structure and
VLA-in-union.
* gdb.base/vla-datatypes.c (vla_factory): Add vla_struct,
inner_vla_struct, vla_union types. Initialize objects of those
types and compute their sizes.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=92e2a17f9b145d35b4a9a2273612d323ccdc9cac
commit 92e2a17f9b145d35b4a9a2273612d323ccdc9cac
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 8 10:10:43 2014 -0600
minor cleanups in is_dynamic_type
I noticed that gdbtypes.c:is_dynamic_type has some unneeded "break"s.
This patch cleans up the function a bit, removing those and removing
the switch's default case so that the end of the function is a bit
clearer.
2014-06-04 Tom Tromey <tromey@redhat.com>
* gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 17 ++++
gdb/ada-lang.c | 20 ++++-
gdb/gdbtypes.c | 119 ++++++++++++++++++++++++++++--
gdb/testsuite/ChangeLog | 8 ++
gdb/testsuite/gdb.base/vla-datatypes.c | 26 +++++++
gdb/testsuite/gdb.base/vla-datatypes.exp | 18 +++++
gdb/value.c | 23 ++++++
gdb/value.h | 2 +
8 files changed, 224 insertions(+), 9 deletions(-)
hooks/post-receive
--
gdb and binutils