Fix some infrastructure to be able to cope with host and target
authorJohn Gilmore <gnu@cygnus>
Fri, 6 Sep 1991 07:09:40 +0000 (07:09 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 6 Sep 1991 07:09:40 +0000 (07:09 +0000)
commit06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f
treeb4e42abc46d349c21cc54cd4132dccd5667e7715
parent2d8fa9ab983d9d2ff132a16c57f71ddb6e6c0952
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/breakpoint.c
gdb/convex-tdep.c
gdb/remote-vx.c
gdb/solib.c
gdb/valops.c