aboutsummaryrefslogtreecommitdiff
path: root/gdb/convex-tdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-06 07:09:40 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-06 07:09:40 +0000
commit06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f (patch)
treeb4e42abc46d349c21cc54cd4132dccd5667e7715 /gdb/convex-tdep.c
parent2d8fa9ab983d9d2ff132a16c57f71ddb6e6c0952 (diff)
downloadgdb-06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f.zip
gdb-06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f.tar.gz
gdb-06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f.tar.bz2
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.
Diffstat (limited to 'gdb/convex-tdep.c')
-rw-r--r--gdb/convex-tdep.c8
1 files changed, 4 insertions, 4 deletions
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;