summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c4
-rw-r--r--gdb/gdbtypes.c2
-rw-r--r--gdb/gdbtypes.h6
-rw-r--r--gdb/jv-lang.c1
-rw-r--r--gdb/stabsread.c7
6 files changed, 5 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a3b1c4d20c6..ae61a298476 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-08 Doug Evans <dje@google.com>
+
+ * gdbtypes.h (struct cplus_struct_type): Delete member
+ nfn_fields_total. All uses removed.
+
2012-01-06 Doug Evans <dje@google.com>
* dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index de9e5f85c57..71cae896603 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7408,7 +7408,6 @@ dwarf2_attach_fn_fields_to_type (struct field_info *fip, struct type *type,
struct dwarf2_cu *cu)
{
struct fnfieldlist *flp;
- int total_length = 0;
int i;
if (cu->language == language_ada)
@@ -7430,12 +7429,9 @@ dwarf2_attach_fn_fields_to_type (struct field_info *fip, struct type *type,
TYPE_ALLOC (type, sizeof (struct fn_field) * flp->length);
for (k = flp->length; (k--, nfp); nfp = nfp->next)
fn_flp->fn_fields[k] = nfp->fnfield;
-
- total_length += flp->length;
}
TYPE_NFN_FIELDS (type) = fip->nfnfields;
- TYPE_NFN_FIELDS_TOTAL (type) = total_length;
}
/* Returns non-zero if NAME is the name of a vtable member in CU's
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index dc52446fb6d..a7c72ff24ef 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2895,8 +2895,6 @@ print_cplus_stuff (struct type *type, int spaces)
TYPE_N_BASECLASSES (type));
printfi_filtered (spaces, "nfn_fields %d\n",
TYPE_NFN_FIELDS (type));
- printfi_filtered (spaces, "nfn_fields_total %d\n",
- TYPE_NFN_FIELDS_TOTAL (type));
if (TYPE_N_BASECLASSES (type) > 0)
{
printfi_filtered (spaces, "virtual_field_bits (%d bits at *",
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index a54a3022f12..ddad0dcbdbf 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -693,11 +693,6 @@ struct cplus_struct_type
short nfn_fields;
- /* Number of methods described for this type, not including the
- methods that it derives from. */
-
- short nfn_fields_total;
-
/* Number of template arguments. */
unsigned short n_template_arguments;
@@ -1050,7 +1045,6 @@ extern void allocate_gnat_aux_type (struct type *);
#define TYPE_VPTR_FIELDNO(thistype) TYPE_MAIN_TYPE(thistype)->vptr_fieldno
#define TYPE_FN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->fn_fields
#define TYPE_NFN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields
-#define TYPE_NFN_FIELDS_TOTAL(thistype) TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields_total
#define TYPE_SPECIFIC_FIELD(thistype) \
TYPE_MAIN_TYPE(thistype)->type_specific_field
#define TYPE_TYPE_SPECIFIC(thistype) TYPE_MAIN_TYPE(thistype)->type_specific
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index 443e2433f2a..2acf5924142 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -501,7 +501,6 @@ java_link_class_type (struct gdbarch *gdbarch,
temp = clas;
nmethods = value_as_long (value_struct_elt (&temp, NULL, "method_count",
NULL, "structure"));
- TYPE_NFN_FIELDS_TOTAL (type) = nmethods;
j = nmethods * sizeof (struct fn_field);
fn_fields = (struct fn_field *)
obstack_alloc (&objfile->objfile_obstack, j);
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 865bac8530c..e3811dd7c9e 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2278,10 +2278,6 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
{
int nfn_fields = 0;
int length = 0;
- /* Total number of member functions defined in this class. If the class
- defines two `f' functions, and one `g' function, then this will have
- the value 3. */
- int total_length = 0;
int i;
struct next_fnfield
{
@@ -2681,7 +2677,6 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
destr_fnlist->next = fip->fnlist;
fip->fnlist = destr_fnlist;
nfn_fields++;
- total_length += has_destructor;
length -= has_destructor;
}
else if (is_v3)
@@ -2732,7 +2727,6 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
new_fnlist->next = fip->fnlist;
fip->fnlist = new_fnlist;
nfn_fields++;
- total_length += length;
}
}
@@ -2744,7 +2738,6 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
memset (TYPE_FN_FIELDLISTS (type), 0,
sizeof (struct fn_fieldlist) * nfn_fields);
TYPE_NFN_FIELDS (type) = nfn_fields;
- TYPE_NFN_FIELDS_TOTAL (type) = total_length;
}
return 1;