From 06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Fri, 6 Sep 1991 07:09:40 +0000 Subject: Fix some infrastructure to be able to cope with host and target machines with different sized basic types (ints, ptrs, etc). (Idea from pierre@la.tce.com (Pierre Willard).) * value.c (value_from_longest): Rename from value_from_long. Handle pointer types as well as integers, so that targets with different pointer sizes from the host can be accomodated. * breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c, valarith.c, valops.c, valprint.c, value.h, values.c: Rename uses of value_from_long to value_from_longest. * eval.c, findvar.c, printcmd.c, valarith.c, valops.c: Pass the correct pointer type to value_from_long{est}. * remote-vx.c: Remove obsolete code for calling functions via vxworks kludge interface (it referenced value_from_long). * valops.c (value_string): Find malloc with lookup_misc_func, not raw search. * breakpoint.c, remote-vx.c: Reword strings printed by catch_errors callers. --- gdb/convex-tdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/convex-tdep.c') diff --git a/gdb/convex-tdep.c b/gdb/convex-tdep.c index 95da97c..d77c25c 100644 --- a/gdb/convex-tdep.c +++ b/gdb/convex-tdep.c @@ -339,12 +339,12 @@ value_of_trapped_internalvar (var) if (!strcmp (name, "vl")) { - val = value_from_long (builtin_type_int, + val = value_from_longest (builtin_type_int, (LONGEST) *read_vector_register_1 (VL_REGNUM)); } else if (!strcmp (name, "vs")) { - val = value_from_long (builtin_type_int, + val = value_from_longest (builtin_type_int, (LONGEST) *read_vector_register_1 (VS_REGNUM)); } else if (!strcmp (name, "vm")) @@ -376,10 +376,10 @@ value_of_trapped_internalvar (var) } else if (name[0] == 'c') - val = value_from_long (builtin_type_int, + val = value_from_longest (builtin_type_int, read_comm_register (atoi (&name[1]))); else if (name[0] == 'C') - val = value_from_long (builtin_type_long_long, + val = value_from_longest (builtin_type_long_long, read_comm_register (atoi (&name[1]))); VALUE_LVAL (val) = lval_internalvar; -- cgit v1.1