aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
AgeCommit message (Collapse)AuthorFilesLines
2001-06-18Recognize -i=mi0, -i=mi1 and -i=mi.Andrew Cagney1-6/+6
2001-06-152001-06-15 Michael Snyder <msnyder@redhat.com>Michael Snyder1-64/+65
* infrun.c (context_switch): New function. Abstract the operation of saving and restoring infrun's state when switching threads. (handle_inferior_event): Normalize the handling of the 'thread hop' event (when the wrong thread hits a thread-specific breakpoint, and we need to solo-step that thread past the breakpoint). Call keep_going, instead of target_resume. Handle the subsequent singlestep-trap as a normal event instead of just resuming.
2001-06-132001-06-13 Michael Snyder <msnyder@redhat.com>Michael Snyder1-2/+6
* gdbthread.h (struct thread_info): Add new fields: current_line, current_symtab, step_sp, for saved infrun state. * thread.c (save_infrun_state, load_infrun_state): Save and restore current_line, current_symtab, and step_sp. (add_thread): Rather than adding assignments to initialize the new fields, just use memset (tp, 0, sizeof (*tp). This way future new fields will not be overlooked. * infrun.c (handle_inferior_event): Save and restore save_sp, current_line, and current_symtab when switching threads.
2001-06-022001-06-01 Michael Snyder <msnyder@redhat.com>Michael Snyder1-6/+4
* thread.c (delete_step_resume_breakpoint): New function. Maintain internal consistency of the thread list while deleting a step_resume_breakpoint. * gdbthread.h (delete_step_resume_breakpoint): Export. * breakpoint.c (bpstat_find_step_resume_breakpoint): Make thread-aware: don't return a step_resume_breakpoint for the wrong thread. * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint instead of delete_breakpoint_current_contents. (fetch_inferior_event): Ditto. (handle_inferior_event): Call delete_step_resume_breakpoint instead of delete_breakpoint.
2001-06-012001-06-01 Michael Snyder <msnyder@redhat.com>Michael Snyder1-14/+22
* infrun.c (handle_inferior_event): After singlestepping over a thread-specific breakpoint, use currently_stepping() to decide whether to step or continue.
2001-05-15Redefine ptid_t to be a struct rather than an int.Kevin Buettner1-1/+67
2001-05-06Consolidate save_inferior_ptid/restore_inferior_ptid implementation toKevin Buettner1-0/+24
one source file.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-99/+110
2001-04-062001-04-06 David Smith <dsmith@redhat.com>David Smith1-0/+22
* arch-utils.c (default_prepare_to_proceed) (generic_prepare_to_proceed): Added new functions. * arch-utils.h: New function declarations for default_prepare_to_proceed() and generic_prepare_to_proceed(). * gdbarch.sh: Added PREPARE_TO_PROCEED. * gdbarch.c: Regenerated. * gdbarch.h: Regenerated. * inferior.h: Added get_last_target_status() declaration. * infrun.c (get_last_target_status): Added new function. (handle_inferior_event): Saves last pid and waitstatus, which will get returned by get_last_target_status(). * hppa-tdep.c (prepare_to_proceed): Added comment stating that prepare_to_proceed() is potentially redundant since default_prepare_to_proceed() has been added. * linux-thread.c (prepare_to_proceed): Ditto. * lin-lwp.c (prepare_to_proceed): Ditto. * m3-nat.c (prepare_to_proceed): Ditto.
2001-03-22-Wuninitialized fixes.Andrew Cagney1-0/+1
2001-03-20Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().Andrew Cagney1-5/+5
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-4/+7
internal_verror().
2001-01-272001-01-26 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-2/+4
Fix double parsing of filenames passed as command line arguments to GDB (causes weird handling of escape characters). Also, remove dependencies on the CLI from libgdb. * call-cmds.h: Remove declaration of exec_file_command(). * gdbcore.h: Remove declaration of exec_file_command(). Add declarations for exec_open() and exec_file_clear(). * symfile.h: Add declarations for symbol_file_add_main() and symbol_file_clear(). * exec.c (exec_open): New function. Implements to_open for exec targets. (exec_file_clear): New function. Makes GDB forget about a previously specified executable file. (exec_file_attach): Move parsing of arguments from here ... (exec_file_command): ... to here. (init_exec_ops): Use exec_open(), not exec_file_command() to implement to_open for exec targets. * symfile.c (symbol_file_add_main): New function. Call symbol_file_add() with default values. Used when the file name has already been parsed. (symbol_file_clear): New function. Makes GDB forget about previously read symbols. (symbol_file_command): Call the above function instead of inline code. * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated "call-cmds.h". (captured_main): Call exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). (captured_main): Add comment. * corefile.c: Include "symfile.h". (core_file_command): Call symbol_file_add_main() instead of symbol_file_command(). (reopen_exec_file): Call exec_open() instead of exec_file_command(). * infcmd.c: Include "symfile.h". (attach_command): Call symbol_file_add_main() instead of symbol_file_command(). * infrun.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (follow_exec): Call symbol_file_add_main() instead of symbol_file_command(). * remote-es.c: Include "symfile.h". (es1800_load): Call symbol_file_add_main() instead of symbol_file_command(). * remote-vx.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (vx-wait): Call symbol_file_add_main() instead of symbol_file_command(). * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main() instead of symbol_file_command(). * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). * Makefile.in: Update dependencies.
2000-12-15Replace free() with xfree().Kevin Buettner1-6/+6
2000-11-10* inferior.h (step_over_calls_kind): New enum to clarify values inChristopher Faylor1-5/+31
step_over_calls. * infcmd.c (step_over_calls): Change definition. (step_1): Use new enum values in relation to step_over_calls. (step_once): Ditto. (until_next_command): Ditto. * infrun.c (clear_proceed_status): Ditto. (handle_inferior_event): Ditto. * inferior.h (step_stop_if_no_debug): New variable. * infrun.c (step_stop_if_no_debug): Declare. (handle_inferior_event): Stop the step command if we entered a function without line info. (_initialize_infrun): New command 'set step-mode' to control the step command. * infcmd.c (step_once): Switch to stepi mode if there is no line info (and switching is enabled).
2000-11-062000-11-06 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser1-2/+2
From Steven Johnson <sbjohnson@ozemail.com.au>: This set of changes add "hookpost-" as an expansion on the original hooking of commands to GDB. A Hook may now be run "AFTER" execution of a command as well as before. * command.h (struct cmd_list_element): Changed elements hook and hookee to hook_pre and hookee_pre respectively. Added hook_post and hookee_post for the post hook command operation. Added hook_in so that an executing hook can be flagged to prevent recursion. * command.c (add_cmd): Changed initilization of cmd_list_element to reflect above changes. (delete_cmd): Remove both pre and post hooks. (help_cmd): Notify that the command has pre and/or post hooks. * infrun.c (normal_stop): Change references to hook_pre from hook. * top.c (execute_command): Run both pre and post hooks. (define_command): Allow definition of both pre and post hooks. The definition of pre-hooks is done as before, with the "hook-" prefix for backward compatibility.
2000-10-30 * eval.c (parse_and_eval_long): New function.David Taylor1-1/+1
* value.h: Declare it. * breakpoint.c (breakpoints_info, maintenance_info_breakpoints): Call parse_and_eval_long, not parse_and_eval_address. * command.c (do_setshow_command): Ditto. * infcmd.c (step_1, signal_command, continue_command): Ditto. * infrun.c (signals_info): Ditto. * stack.c (set_backtrace_limit_command, backtrace_command_1, up_silently_base, down_silently_base): Ditto. * tracepoints.c (tracepoints_info, trace_find_command, trace_find_tracepoint_command): Ditto. * valprint.c (set_radix): Ditto. * values.c (show_values): Ditto.
2000-10-27Corrected spelling errors in comments.David Anderson1-1/+1
gdbarch.{c,sh} removed a word from a comment.
2000-09-02Corrected spelling in comment: unles -> unless.David Anderson1-1/+1
2000-07-30Protoization.Kevin Buettner1-2/+1
2000-06-08Botch in previous change. Was comparing against "ask" instead ofAndrew Cagney1-1/+1
follow_fork_mode_ask.
2000-06-08Change signature of function add_set_enum_cmd() so that it usesAndrew Cagney1-38/+24
constant character pointers. Update everything. As a consequence fix infrun's follow-fork plugging a small memory leak.
2000-05-22Purge (almost) make_cleanup_func.Andrew Cagney1-4/+15
2000-05-16Fix signature of add_set_enum_cmd. Change VAR parameter to char**.Andrew Cagney1-2/+2
Cleanup signature of add_set_cmd. Change VAR parameter to void*.
2000-05-04* infrun.c (handle_inferior_event): Add missing call to keep_goingMark Kettenis1-0/+2
and missing return when handling an ordinary signal from the inferior.
2000-05-03* infrun.c (handle_inferior_event): When doing a "next", andMark Kettenis1-1/+15
stepping out of a signal handler into its calling trampoline ignore the value of step_frame_address. (step_over_function): Only modify step_resume_breakpoint->frame if the value of step_frame_address is non-zero.
2000-05-02revert 1.9. Not approved.Andrew Cagney1-2/+0
2000-05-02re-do how gdbarch provides non-multi arch defaults so that non-Andrew Cagney1-0/+2
multi-arch gdbservers can continue to compile.
2000-04-20Append NULL to enum based commands follow-fork and scheduler-locking.Andrew Cagney1-8/+13
2000-04-13 * infrun.c (proceed, normal_stop): Change the error message aboutEli Zaretskii1-4/+8
failure to insert breakpoints/watchpoints so that it makes sense even if ptrace is not used or no other processes can be active.
2000-04-05 * infrun.c (handle_inferior_event): Call target_mourn_inferiorNicholas Duffek1-6/+6
instead of kill_target.
2000-03-282000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>Michael Snyder1-0/+19
breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function. infrun.c (resume): Remove hardware watchpoints before stepping when CANNOT_STEP_HW_WATCHPOINTS is nonzero.
2000-02-29Add more checks for no stack frame.Andrew Cagney1-1/+2
2000-02-23Add mi/ and testsuite/gdb.mi/ subdirectories.Andrew Cagney1-0/+23
Add --enable-gdbmi option to configury. Add mi rules to Makefile.in Add mi conditional output to event-top.c infrun.c main.c top.c. Add -i=mi option.
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-1/+1
2000-02-05import gdb-2000-02-04 snapshotJason Molenda1-6/+7
2000-02-03import gdb-2000-02-02 snapshotJason Molenda1-0/+47
2000-01-18import gdb-2000-01-17 snapshotJason Molenda1-8/+8
2000-01-06import gdb-2000-01-05 snapshotJason Molenda1-22/+6
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-0/+11
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-26/+38
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-30/+96
1999-10-19import gdb-1999-10-18 snapshotJason Molenda1-65/+25
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-31/+4
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-58/+29
1999-09-22import gdb-1999-09-21Jason Molenda1-59/+96
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-171/+280
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-118/+186