Lines Matching defs:inferior
1 /* Memory-access and commands for "inferior" process, for GDB.
24 #include "inferior.h"
67 /* Pid of our debugged inferior, or 0 if no inferior now.
78 /* Nonzero if stopped due to a random (unexpected) signal in inferior
91 /* Store the new value passed to 'set inferior-tty'. */
99 /* Get the current 'inferior-tty' value. */
107 /* Implement 'show inferior-tty' command. */
145 inferior. However, these should always be the same. */
151 /* See gdbsupport/common-inferior.h. */
178 You have not set the inferior's current working directory.\n\
179 The inferior will inherit GDB's cwd if native debugging, or the remote\n\
184 "when starting the inferior is \"%s\".\n"),
226 /* Common actions to take after creating any sort of inferior, by any
237 infrun_debug_show_threads ("threads in the newly created inferior",
299 new inferior doesn't load shared libraries or we don't pull in
309 /* Kill the inferior if already running. This function is designed
331 /* See inferior.h. */
351 /* Determine how the new inferior will behave. */
403 in the inferior. */
412 /* Done. Can now set breakpoints, change inferior args, etc. */
418 inferior-specific. */
419 std::string arg = string_printf ("-qualified %s inferior %d",
623 and so nothing calls this to put the inferior's terminal
632 <no thread was resumed, but the inferior now owns the terminal>
634 target_terminal::inferior ();
1442 /* See inferior.h. */
1464 /* FIXME: 2003-09-27: When returning from a nested inferior function
1468 inferior function call code. In fact, when inferior function
2443 /* Kill the inferior process. Make us have no inferior. */
2458 /* Save the pid as a string before killing the inferior, since that
2468 gdb_printf (_("[Inferior %d (%s) killed]\n"),
2472 /* Used in `attach&' command. Proceed threads of inferior INF iff
2478 proceed_after_attach (inferior *inf)
2497 /* See inferior.h. */
2502 struct inferior *inferior;
2504 inferior = current_inferior ();
2505 inferior->needs_setup = false;
2543 struct inferior *inferior;
2545 inferior = current_inferior ();
2546 inferior->control.stop_soon = NO_STOP_QUIETLY;
2548 if (inferior->needs_setup)
2556 /* Immediately resume all suspended threads of this inferior,
2557 and this inferior only. This should have no effect on
2561 proceed_after_attach (inferior);
2574 the inferior stopped. */
2584 target_stop (ptid_t (inferior->pid));
2619 struct inferior *inferior = current_inferior ();
2664 /* Set up the "saved terminal modes" of the inferior
2668 /* Install inferior's terminal modes. This may look like a no-op,
2672 - installs a SIGINT handler that forwards SIGINT to the inferior.
2682 target_terminal::inferior ();
2688 inferior->needs_setup = true;
2701 inferior. */
2710 /* Some system don't generate traps when attaching to inferior.
2714 /* Careful here. See comments in inferior.h. Basically some
2719 inferior->control.stop_soon = STOP_QUIETLY_NO_SIGSTOP;
2722 inferior->add_continuation ([=] ()
2729 inferior->process_target ()->threads_executing = true;
2742 inferior. PTID points at a thread of this new inferior, that is
2744 The new inferior is assumed to be already added to the inferior
2746 this inferior running, except those we've explicitly seen reported
2764 /* When we "notice" a new inferior we need to do all the things we
2769 struct inferior *inferior = current_inferior ();
2772 ensure that the inferior is stopped for a moment while we do
2776 inferior->control.stop_soon = STOP_QUIETLY_REMOTE;
2779 inferior->add_continuation ([=] ()
2818 inferior *inf = current_inferior ();
2829 /* The current inferior process was just detached successfully. Get
2837 detach from a single inferior. */
2892 /* See inferior.h. */
2905 for (inferior *inf : all_inferiors ())
2943 /* See inferior.h. */
3093 To start the inferior without using a shell, use \"set startup-with-shell off\"."
3102 /* Add the filename of the terminal connected to inferior I/O. */
3104 = add_setshow_optional_filename_cmd ("inferior-tty", class_run, _("\
3107 Usage: set inferior-tty [TTY]\n\n\
3129 Set the current working directory to be used when the inferior is started.\n\
3133 Show the current working directory that is used when the inferior is started."),
3136 when the inferior is started. This setting does not affect GDB's current\n\