diff options
author | John Gilmore <gnu@cygnus> | 1991-09-06 07:09:40 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-09-06 07:09:40 +0000 |
commit | 06b6c733aedcaeaa7b54a7152e9d5e5dfdc6266f (patch) | |
tree | b4e42abc46d349c21cc54cd4132dccd5667e7715 /gdb/breakpoint.c | |
parent | 2d8fa9ab983d9d2ff132a16c57f71ddb6e6c0952 (diff) | |
download | gdb-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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f290ad5..67d049a 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -130,7 +130,7 @@ set_breakpoint_count (num) { breakpoint_count = num; set_internalvar (lookup_internalvar ("bpnum"), - value_from_long (builtin_type_int, (LONGEST) num)); + value_from_longest (builtin_type_int, (LONGEST) num)); } /* Default address, symtab and line to put a breakpoint at @@ -824,7 +824,8 @@ which its expression is valid.\n", b->number); select_frame (get_current_frame (), 0); value_is_zero = catch_errors (breakpoint_cond_eval, (char *)(b->cond), - "Error occurred in testing breakpoint condition."); + "Error in testing breakpoint condition:\n"); + /* FIXME-someday, should give breakpoint # */ free_all_values (); } if (b->cond && value_is_zero) @@ -2032,7 +2033,7 @@ breakpoint_re_set () { b->symtab = 0; /* Be sure we don't point to old dead symtab */ (void) catch_errors (breakpoint_re_set_one, (char *) b, - "Error in re-setting breakpoint"); + "Error in re-setting breakpoint:\n"); } /* Blank line to finish off all those mention() messages we just printed. */ |