aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2001-12-10 06:13:11 +0000
committerFred Fish <fnf@specifix.com>2001-12-10 06:13:11 +0000
commit7e956337e535c90616a3ecb1ca0db68998660764 (patch)
tree894a10e478ee2170c05853bae852d18286fbe580
parent46cd78fb4637fcab17b78f8e4c8a6983960f404d (diff)
downloadgdb-7e956337e535c90616a3ecb1ca0db68998660764.zip
gdb-7e956337e535c90616a3ecb1ca0db68998660764.tar.gz
gdb-7e956337e535c90616a3ecb1ca0db68998660764.tar.bz2
Approved by Jim Blandy:
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (allocate_stub_method): Replace hand crafted type initialization with call to the init_type() function.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 478ce4c..a040ef8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-09 Fred Fish <fnf@redhat.com>
+
+ * gdbtypes.c (allocate_stub_method): Replace hand crafted type
+ initialization with call to the init_type() function.
+
2001-12-09 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (generic_register_raw_size): New function.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 6a8fe1f..9533903 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -542,13 +542,11 @@ allocate_stub_method (struct type *type)
{
struct type *mtype;
- mtype = alloc_type (TYPE_OBJFILE (type));
+ mtype = init_type (TYPE_CODE_METHOD, 1, TYPE_FLAG_STUB, NULL,
+ TYPE_OBJFILE (type));
TYPE_TARGET_TYPE (mtype) = type;
/* _DOMAIN_TYPE (mtype) = unknown yet */
/* _ARG_TYPES (mtype) = unknown yet */
- TYPE_FLAGS (mtype) = TYPE_FLAG_STUB;
- TYPE_CODE (mtype) = TYPE_CODE_METHOD;
- TYPE_LENGTH (mtype) = 1;
return (mtype);
}