aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
AgeCommit message (Collapse)AuthorFilesLines
2002-06-10* infrun.c (struct inferior_status): Replace fieldsAndrew Cagney1-4/+4
selected_frame_address and selected_level with field selected_frame_id. (save_inferior_status): Update. Use get_frame_id. (struct restore_selected_frame_args): Delete. (restore_selected_frame): Update. Use frame_find_by_id. (restore_inferior_status): Update. * breakpoint.h (struct breakpoint): Change type of watchpoint_frame to frame_id. * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove call to get_current_frame. (do_enable_breakpoint): Use frame_find_by_id. Remove call to get_current_frame. (watchpoint_check): Use frame_find_by_id. * frame.h (record_selected_frame): Delete declaration. * stack.c (record_selected_frame): Delete function. * frame.h (struct frame_id): Define. (get_frame_id): Declare. (frame_find_by_id): Declare. * frame.c (frame_find_by_id): New function. (get_frame_id): New function.
2002-02-062002-02-04 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+10
* breakpoint.h (enum bptype): Add new overlay event bp type. (enable_overlay_breakpoints, disable_overlay_breakpoints): Export. * breakpoint.c (create_internal_breakpoint): New function. (internal_breakpoint_number): Moved into create_internal_breakpoint. (create_longjmp_breakpoint): Use create_internal_breakpoint. (create_thread_event_breakpoint): Ditto. (create_solib_event_breakpoint): Ditto. (create_overlay_event_breakpoint): New function. (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs. (update_breakpoints_after_exec): Delete and re-initialize overlay event breakpoints after an exec. Add FIXME comment about longjmp breakpoint. (print_it_typical): Ignore overlay event breakpoints. (print_one_breakpoint): Ditto. (mention): Ditto. (bpstat_what): Do not stop for overlay event breakpoints. (delete_breakpoint): Don't delete overlay event breakpoints. (breakpoint_re_set_one): Delete the overlay event breakpoint. (breakpoint_re_set): Re-create overlay event breakpoint. * symfile.c (overlay_auto_command): Enable overlay breakpoints. (overlay_manual_command): Disable overlay breakpoints. (overlay_off_command): Disable overlay breakpoints.
2001-10-20* breakpoint.h, breakpoint.c: Ditto.Andrew Cagney1-3/+5
2001-08-02 The following changes avoid polluting global namespace with theEli Zaretskii1-11/+11
`enable' and `disable' identifiers, because some platforms define in their system headers symbols with global scope that go by those names. * breakpoint.h (enum enable_state): Rename from `enum enable'. Also rename all the enum members to have the "bp_" prefix. (struct breakpoint): Rename the `enable' member to `enable_state'. (enum bpdisp): Rename all members to have the "disp_" prefix. * breakpoint.c: All users of `enum enable' and `enum bpdisp' changed. (args_for_catchpoint_enable): Rename the `enable' member to `enable_p'. All users changed. * tracepoint.h (enum enable): Remove. (struct tracepoint): The member `enabled' is now `int enabled_p'. * tracepoint.c: All users of the `enabled' member changed. * printcmd.c (struct display): The `status' member is now an int. * memattr.h (struct mem_region): Rename the `status' member to `enabled_p'. (enum enable): Remove. * memattr.c: Change all users of the `status' member of struct mem_region to use `enabled_p' instead. * infcmd.c (run_stack_dummy): Use disp_del instead of del. * go32-nat.c: Remove the kludgey work-around for conflicts between <dos.h> and "breakpoint.h". * tui/tuiSourceWin.c: Use disp_del instead of del. * tui/tuiSource.c: Use disp_del instead of del. * tui/tuiDisassem.c: Use disp_del instead of del.
2001-05-06* breakpoint.c (check_duplicates): Use the breakpoint's type, notJim Blandy1-10/+9
its address, to decide whether it's a watchpoint or not. Zero is a valid code address. (update_breakpoints_after_exec): Admonishing comments. * breakpoint.h (struct breakpoint): Doc fixes.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-2/+2
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2000-10-27Corrected spelling errors in comments.David Anderson1-4/+4
gdbarch.{c,sh} removed a word from a comment.
2000-05-28PARAMS removal.Kevin Buettner1-78/+72
2000-05-15Cleanup delete_breakpoint cleanups.Andrew Cagney1-0/+4
2000-03-29Fix various GCC warnings.Andrew Cagney1-0/+4
2000-02-03import gdb-2000-02-02 snapshotJason Molenda1-0/+6
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-0/+14
1999-11-02import gdb-1999-11-01 snapshotJason Molenda1-11/+15
1999-10-26import gdb-1999-10-25 snapshotJason Molenda1-4/+19
1999-10-19import gdb-1999-10-18 snapshotJason Molenda1-1/+11
1999-09-22import gdb-1999-09-21Jason Molenda1-3/+23
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-2/+3
1999-08-23import gdb-1999-08-23 snapshotJason Molenda1-25/+40
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-333/+339
1999-04-26import gdb-19990422 snapshotStan Shebs1-0/+1
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+604
1999-04-16Initial creation of sourceware repositoryStan Shebs1-604/+0
1999-01-19disable_breakpoints_in_shlibs now takes a new parameter -- silent; callersDavid Taylor1-1/+1
updated. new callers -- clear_solib (irix5-nat.c, osfsolib.c, solib.c). PR 16495 / PR 18213.
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-5/+184
1996-05-02 * From Peter Schauer:Jeff Law1-57/+105
* breakpoint.h (enum bpdisp): Add del_at_next_stop. * breakpoint.c (insert_breakpoints, watchpoint_check, bpstat_stop_status): Avoid bad references to memory freed via delete_breakpoint on watchpoints going out of scope. Do not delete these watchpoints, disable them and change their disposition to del_at_next_stop instead. (breakpoint_auto_delete): Delete all breakpoints whose disposition is del_at_next_stop. (breakpoint_init_inferior): Use switch to avoid reference to already deleted breakpoint. Fixes dangling pointer problems with watchpoints.
1994-02-25 * breakpoint.h (enum bptype): New type bp_through_sigtramp.Jim Kingdon1-9/+19
(bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP. * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP if we hit a bp_through_sigtramp breakpoint. Remove kludge which ignored bs->stop for a bp_step_resume breakpoint. * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint which performs one (the check_sigtramp2 one) of the functions which had been handled by the step_resume_breakpoint. For each use of the step_resume_breakpoint, make it still use the step_resume_breakpoint, use the through_sigtramp_breakpoint, or operate on both. Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what. When setting the frame address of the step resume breakpoint, set it to the address for frame *before* the call instruction is executed, not after.
1993-10-15 * Move comments on bypassing call dummy breakpoint from stack.cJim Kingdon1-0/+6
to breakpoint.h.
1993-10-07 * breakpoint.c, breakpoint.h (breakpoint_init_inferior): New functionJim Kingdon1-4/+4
that clears the `inserted' flag for all breakpoints and deletes any breakpoints which should go away between runs of programs. * inflow.c (generic_mourn_inferior), infrun.c (init_wait_for_inferior), remote-es.c (es1800_load), comments in exec.c and corelow.c: Use it instead of mark_breakpoints_out. * breakpoint.c (mark_breakpoints_out): Update comment, tm-rs6000.h uses it in a completely different context. * breakpoint.c (breakpoint_re_set_one): Add bp_call_dummy case.
1993-09-21* breakpoint.c (breakpoint_1): Support bp_call_dummy.Jim Kingdon1-3/+0
1993-09-18 * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.Jim Kingdon1-113/+143
Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET. * breakpoint.h (enum bptype): Add bp_call_dummy. (struct bpstat_what): Add call_dummy field. * infrun.c (wait_for_inferior): Deal with it. * breakpoint.c (bpstat_what): Deal with call dummy breakpoint. * infcmd.c (run_stack_dummy): Set the call dummy breakpoint. * config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
1993-04-09 * breakpoint.h (struct bpstat): Remove momentary field.Jim Kingdon1-16/+58
Remove bpstat_momentary_breakpoint. This was always kludgy and is no longer used. * breakpoint.h: Add enum bpstat_what. breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status): stop and print fields of bpstat now per-breakpoint, not just one for the whole chain. breakpoint.{c,h} (bpstat_what): New function. breakpoint.h: Remove bpstat_stop and bpstat_should_print. infrun.c: Replace switch (stop_bpstat->breakpoint_at->type) with call to bpstat_what. README: Remove watchpoint/breakpoint bug from known bugs. * breakpoint.h: Prototype bpstat_find_breakpoint.
1993-03-29 * breakpoint.{c,h}: Add exp_string to struct breakpoint and useJim Kingdon1-72/+85
it in breakpoint_re_set.
1992-02-22* infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,Stu Grossman1-33/+183
breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h, mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for stepping (and nexting) through longjmp(). Also, cleanup breakpoint handling quite a bit by creating explicit breakpoint types instead of using magic breakpoint numbers. Makefile.in: Update version to 4.4.3
1991-03-28Initial revisionK. Richard Pixley1-0/+129