diff options
author | Michael Snyder <msnyder@vmware.com> | 1999-01-13 23:44:07 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 1999-01-13 23:44:07 +0000 |
commit | 677f415c03a33889e1f133003f2e3dc15368dcb3 (patch) | |
tree | 30a3f20ea0b2b7a6d427cb989c4091c28938ddd0 /gdb/breakpoint.c | |
parent | 9e309e83417ed559d01f8d690085300771ddd75e (diff) | |
download | gdb-677f415c03a33889e1f133003f2e3dc15368dcb3.zip gdb-677f415c03a33889e1f133003f2e3dc15368dcb3.tar.gz gdb-677f415c03a33889e1f133003f2e3dc15368dcb3.tar.bz2 |
* thread.c: cull duplicate prototypes. Move prototypes to top.
* serial.c: indentation cleanup.
* breakpoint.c: add casts to eliminate compiler warnings.
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 063cab8..b979bf2 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -665,7 +665,8 @@ insert_breakpoints () /* Bp set, now make sure callbacks are enabled */ args.kind = b->type == bp_catch_catch ? EX_EVENT_CATCH : EX_EVENT_THROW; args.enable = 1; - sal = catch_errors ((int (*) PARAMS ((char *))) cover_target_enable_exception_callback, + sal = catch_errors ((int (*) PARAMS ((char *))) + cover_target_enable_exception_callback, (char *) &args, message, RETURN_MASK_ALL); if (sal && (sal != (struct symtab_and_line *) -1)) @@ -914,7 +915,7 @@ update_breakpoints_after_exec () (b->type == bp_catch_vfork) || (b->type == bp_catch_fork)) { - b->address = NULL; + b->address = (CORE_ADDR) NULL; continue; } @@ -959,7 +960,7 @@ update_breakpoints_after_exec () /* If this breakpoint has survived the above battery of checks, then it must have a symbolic address. Be sure that it gets reevaluated to a target address, rather than reusing the old evaluation. */ - b->address = NULL; + b->address = (CORE_ADDR) NULL; } } |