aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-28 17:13:08 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-28 17:13:08 +0000
commitdc9894c8b14172f3046b43fad45b0f281fe21374 (patch)
treedc83352f761d24c2c80f3e4997b30a109fce35cf /gdb/symtab.c
parent03e826bb518e555efec5c736e8396fb8423f6f7d (diff)
downloadgdb-dc9894c8b14172f3046b43fad45b0f281fe21374.zip
gdb-dc9894c8b14172f3046b43fad45b0f281fe21374.tar.gz
gdb-dc9894c8b14172f3046b43fad45b0f281fe21374.tar.bz2
* symtab.c (lookup_method_type): Arguments were swapped in all
callers, so fix it here. I'm amazed this worked at all!
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index cb4d2d2..2d6cd05 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -437,6 +437,8 @@ lookup_pointer_type (type)
if (TYPE_FLAGS (type) & TYPE_FLAG_PERM)
TYPE_FLAGS (ptype) |= TYPE_FLAG_PERM;
/* We assume the machine has only one representation for pointers! */
+ /* FIXME: This confuses host<->target data representations, and is a
+ poor assumption besides. */
TYPE_LENGTH (ptype) = sizeof (char *);
TYPE_CODE (ptype) = TYPE_CODE_PTR;
return ptype;
@@ -548,13 +550,13 @@ allocate_stub_method (type)
return mtype;
}
-/* Lookup a method type returning type TYPE, belonging
- to class DOMAIN, and taking a list of arguments ARGS.
+/* Lookup a method type belonging to class DOMAIN, returning type TYPE,
+ and taking a list of arguments ARGS.
If one is not found, allocate a new one. */
struct type *
-lookup_method_type (type, domain, args)
- struct type *type, *domain, **args;
+lookup_method_type (domain, type, args)
+ struct type *domain, *type, **args;
{
register struct type *mtype = TYPE_MAIN_VARIANT (type);
struct type *main_type;
@@ -2597,12 +2599,7 @@ list_symbols (regexp, class, bpt)
/* Typedef that is not a C++ class */
if (class == 2
&& SYMBOL_NAMESPACE (sym) != STRUCT_NAMESPACE)
-#ifndef FIXME
- /* We haven't integrated this from A. Beers yet */
- error ("typedef_print(SYMBOL_TYPE(sym),sym,stdout);");
-#else
- typedef_print(SYMBOL_TYPE(sym),sym,stdout);
-#endif
+ typedef_print (SYMBOL_TYPE(sym), sym, stdout);
/* variable, func, or typedef-that-is-c++-class */
else if (class < 2 ||
(class == 2 &&