diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:21:49 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:21:49 +0000 |
commit | 8b9b9e1a3a418a932d0ab62df99466c685d7b184 (patch) | |
tree | 8c3f9e066802936f3dd3339b92c6daa98ba788d5 /gdb/breakpoint.c | |
parent | b769d911fd1a0ffdde4305b1cb7a9a8265549896 (diff) | |
download | gdb-8b9b9e1a3a418a932d0ab62df99466c685d7b184.zip gdb-8b9b9e1a3a418a932d0ab62df99466c685d7b184.tar.gz gdb-8b9b9e1a3a418a932d0ab62df99466c685d7b184.tar.bz2 |
* defs.h (struct gdbarch): Add forward declaration.
(set_next_address): Add GDBARCH argument.
* printcmd.c (set_next_address): Use it to find pointer type.
* breakpoint.c (breakpoint_1): Update call.
* source.c (line_info): Likewise.
* findcmd.c (find_command): Use current_gdbarch to find pointer type.
* breakpoint.c (set_breakpoint_count): Use platform-neutral
types for internal variable values.
* infrun.c (handle_inferior_event): Likewise.
* source.c (forward_search_command, reverse_search_command): Likewise.
* tracepoint.c (set_tracepoint_count, set_traceframe_num,
set_tracepoint_num, set_traceframe_context): Likewise.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fa7fb69..9454428 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -401,7 +401,7 @@ set_breakpoint_count (int num) { breakpoint_count = num; set_internalvar (lookup_internalvar ("bpnum"), - value_from_longest (builtin_type_int, (LONGEST) num)); + value_from_longest (builtin_type_int32, (LONGEST) num)); } /* Used in run_command to zero the hit count when a new run starts. */ @@ -4031,7 +4031,7 @@ breakpoint_1 (int bnum, int allflag) /* Compare against (CORE_ADDR)-1 in case some compiler decides that a comparison of an unsigned with -1 is always false. */ if (last_addr != (CORE_ADDR) -1 && !server_command) - set_next_address (last_addr); + set_next_address (current_gdbarch, last_addr); } /* FIXME? Should this be moved up so that it is only called when |