diff options
author | John Gilmore <gnu@cygnus> | 1992-09-10 00:07:06 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-09-10 00:07:06 +0000 |
commit | 2640f7e13856f4115d1f955b076f11272f5f3da0 (patch) | |
tree | 8a6bd711d3b3168db97ddf3036ff9ff34d0bffc6 /gdb/symtab.c | |
parent | 5148923360989fb54088f499e4b4cefd14088f9a (diff) | |
download | gdb-2640f7e13856f4115d1f955b076f11272f5f3da0.zip gdb-2640f7e13856f4115d1f955b076f11272f5f3da0.tar.gz gdb-2640f7e13856f4115d1f955b076f11272f5f3da0.tar.bz2 |
Removed a large number of changes inserted by Per Bothner
for C++ support. These will go back in when they've been
examined.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 7146c35..fdda171 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1269,31 +1269,6 @@ find_pc_line_pc_range (pc, startptr, endptr) return sal.symtab != 0; } -struct type * -find_nested_type (type, name) - struct type *type; - char *name; -{ - int i; - for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--) - { - char *t_field_name = TYPE_FIELD_NAME (type, i); - - if (t_field_name && !strcmp (t_field_name, name)) - if (TYPE_FIELD_NESTED (type, i)) - { - return TYPE_FIELD_TYPE (type, i); - } - } - for (i = TYPE_N_BASECLASSES (type) - 1; i >= 0; i--) - { - struct type * t = find_nested_type (TYPE_BASECLASS (type, i), name); - if (t) - return t; - } - return NULL; -} - /* If P is of the form "operator[ \t]+..." where `...' is some legitimate operator text, return a pointer to the beginning of the substring of the operator text. |