summaryrefslogtreecommitdiff
path: root/gdb/scm-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/scm-lang.c')
-rw-r--r--gdb/scm-lang.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/scm-lang.c b/gdb/scm-lang.c
index 66f293bd152..bc37c6f7e68 100644
--- a/gdb/scm-lang.c
+++ b/gdb/scm-lang.c
@@ -278,10 +278,8 @@ build_scm_types (struct gdbarch *gdbarch)
struct builtin_scm_type *builtin_scm_type
= GDBARCH_OBSTACK_ZALLOC (gdbarch, struct builtin_scm_type);
- builtin_scm_type->builtin_scm =
- init_type (TYPE_CODE_INT,
- gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT,
- 0, "SCM", (struct objfile *) NULL);
+ builtin_scm_type->builtin_scm
+ = arch_integer_type (gdbarch, gdbarch_long_bit (gdbarch), 0, "SCM");
return builtin_scm_type;
}