aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-03-12 13:39:02 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2019-03-12 13:45:48 -0700
commitef0bd2046f58fac69577892c2d3b44b20d027476 (patch)
tree8332b9f3c74edc4dd4f903494cc95c2d9a1f2138 /gdb/ChangeLog
parent36c53a0262f84ad11d738471789dadfa9c4eb320 (diff)
downloadgdb-ef0bd2046f58fac69577892c2d3b44b20d027476.zip
gdb-ef0bd2046f58fac69577892c2d3b44b20d027476.tar.gz
gdb-ef0bd2046f58fac69577892c2d3b44b20d027476.tar.bz2
Add a more general version of lookup_struct_elt_type.
lookup_struct_elt is a new function which returns a tuple of information about a component of a structure or union. The returned tuple contains a pointer to the struct field object for the component as well as a bit offset of that field within the structure. If the field names a field in an anonymous substructure, the offset is the "global" offset relative to the original structure type. If noerr is set, then the returned tuple will set the field pointer to NULL to indicate a missing component rather than throwing an error. lookup_struct_elt_type is now reimplemented in terms of this new function. It simply returns the type of the returned field. gdb/ChangeLog: * gdbtypes.c (lookup_struct_elt): New function. (lookup_struct_elt_type): Reimplement via lookup_struct_elt. * gdbtypes.h (struct struct_elt): New type. (lookup_struct_elt): New prototype.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fe2d3e4..2adc64e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2019-03-12 John Baldwin <jhb@FreeBSD.org>
+ * gdbtypes.c (lookup_struct_elt): New function.
+ (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
+ * gdbtypes.h (struct struct_elt): New type.
+ (lookup_struct_elt): New prototype.
+
+2019-03-12 John Baldwin <jhb@FreeBSD.org>
+
* gdbtypes.c (lookup_struct_elt_type): Update comment and
remove disabled code block.