summaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-09-14 02:09:39 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-09-14 02:09:39 +0000
commit313a66ac21fe902f2a91d71eb88d4846e87545ae (patch)
tree33fe32502e7bbd5699117b39075cbf0dbd61504c /gdb/p-valprint.c
parentf0c14d4675a917fd8d6150791394e1075b116cae (diff)
downloadgdb-313a66ac21fe902f2a91d71eb88d4846e87545ae.tar.gz
* gdbtypes.c (check_stub_method): Make static.
(check_stub_method_group): New function. * gdbtypes.h: Update prototypes. * cp-support.c: New file. * cp-support.h: New file. * stabsread.c: Include "cp-abi.h" and "cp-support.h". (update_method_name_from_physname): New function. (read_member_functions): Correct method names for operators and v3 constructors/destructors. Separate v2 constructors and destructors. * Makefile.in (stabsread.o): Update dependencies. (SFILES): Add cp-support.c. (COMMON_OBS): Add cp-support.o. (cp_support_h, cp-support.o): Add. * cp-valprint.c (cp_print_class_method): Call check_stub_method_group instead of check_stub_method. Remove extraneous QUITs. * p-valprint.c (pascal_object_print_class_method): Likewise. * valops.c (search_struct_method): Likewise. (find_method_list, value_struct_elt_for_reference): Likewise.
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r--gdb/p-valprint.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 06a821605fe..a99d4e98972 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -620,13 +620,11 @@ pascal_object_print_class_method (char *valaddr, struct type *type,
f = TYPE_FN_FIELDLIST1 (domain, i);
len2 = TYPE_FN_FIELDLIST_LENGTH (domain, i);
+ check_stub_method_group (domain, i);
for (j = 0; j < len2; j++)
{
- QUIT;
if (TYPE_FN_FIELD_VOFFSET (f, j) == offset)
{
- if (TYPE_FN_FIELD_STUB (f, j))
- check_stub_method (domain, i, j);
kind = "virtual ";
goto common;
}
@@ -646,15 +644,11 @@ pascal_object_print_class_method (char *valaddr, struct type *type,
f = TYPE_FN_FIELDLIST1 (domain, i);
len2 = TYPE_FN_FIELDLIST_LENGTH (domain, i);
+ check_stub_method_group (domain, i);
for (j = 0; j < len2; j++)
{
- QUIT;
- if (TYPE_FN_FIELD_STUB (f, j))
- check_stub_method (domain, i, j);
if (STREQ (SYMBOL_NAME (sym), TYPE_FN_FIELD_PHYSNAME (f, j)))
- {
- goto common;
- }
+ goto common;
}
}
}