|
GDB (xrefs)
|
#include <mach.h>#include <mach_error.h>#include <mach/exception.h>#include <mach/message.h>#include <mach/notify.h>#include <mach/vm_attributes.h>#include <hurd.h>#include <hurd/interrupt.h>#include <hurd/msg.h>#include <hurd/msg_request.h>#include <hurd/process.h>#include <hurd/process_request.h>#include <hurd/signal.h>#include <hurd/sigpreempt.h>#include <portinfo.h>#include "defs.h"#include <ctype.h>#include <limits.h>#include <setjmp.h>#include <signal.h>#include <sys/ptrace.h>#include <elf.h>#include <link.h>#include "inferior.h"#include "symtab.h"#include "value.h"#include "language.h"#include "target.h"#include "gdb_wait.h"#include "gdbcmd.h"#include "gdbcore.h"#include "gdbthread.h"#include "gdb_obstack.h"#include "tid-parse.h"#include "gnu-nat.h"#include "inf-child.h"#include "exc_request_S.h"#include "notify_S.h"#include "process_reply_S.h"#include "msg_reply_S.h"#include "exc_request_U.h"#include "msg_U.h"Go to the source code of this file.
Classes | |
| struct | exc_state |
| struct | inf_wait |
| struct | inf |
| struct | vm_region_list |
Macros | |
| #define | inf_debug(_inf, msg, args...) |
| #define | INF_MSGPORT_RPC(inf, rpc_expr) |
| #define | INF_RESUME_MSGPORT_RPC(inf, rpc_expr) |
| #define | NAME gdb_signal_to_name (sig) |
| #define | ILL_RPC(fun, ...) |
| #define | CHK_GOTO_OUT(str, ret) do if (ret != KERN_SUCCESS) { errstr = #str; goto out; } while(0) |
| #define | parse_bool_arg(args, cmd_prefix) _parse_bool_arg (args, "on", "off", cmd_prefix) |
Functions | |
| static struct inf * | make_inf () |
| void | inf_clear_wait (struct inf *inf) |
| void | inf_cleanup (struct inf *inf) |
| void | inf_startup (struct inf *inf, int pid) |
| int | inf_update_suspends (struct inf *inf) |
| void | inf_set_pid (struct inf *inf, pid_t pid) |
| void | inf_validate_procs (struct inf *inf) |
| void | inf_steal_exc_ports (struct inf *inf) |
| void | inf_restore_exc_ports (struct inf *inf) |
| void | inf_set_threads_resume_sc (struct inf *inf, struct proc *run_thread, int run_others) |
| int | inf_set_threads_resume_sc_for_signal_thread (struct inf *inf) |
| void | inf_suspend (struct inf *inf) |
| void | inf_resume (struct inf *inf) |
| void | inf_set_step_thread (struct inf *inf, struct proc *proc) |
| void | inf_detach (struct inf *inf) |
| void | inf_attach (struct inf *inf, int pid) |
| void | inf_signal (struct inf *inf, enum gdb_signal sig) |
| void | inf_continue (struct inf *inf) |
| void | proc_abort (struct proc *proc, int force) |
| struct proc * | make_proc (struct inf *inf, mach_port_t port, int tid) |
| struct proc * | _proc_free (struct proc *proc) |
| int | proc_update_sc (struct proc *proc) |
| kern_return_t | proc_get_exception_port (struct proc *proc, mach_port_t *port) |
| kern_return_t | proc_set_exception_port (struct proc *proc, mach_port_t port) |
| static mach_port_t | _proc_get_exc_port (struct proc *proc) |
| void | proc_steal_exc_port (struct proc *proc, mach_port_t exc_port) |
| void | proc_restore_exc_port (struct proc *proc) |
| int | proc_trace (struct proc *proc, int set) |
| int | __proc_pid (struct proc *proc) |
| thread_state_t | proc_get_state (struct proc *proc, int will_modify) |
| static void | inf_validate_procinfo (struct inf *inf) |
| static void | inf_validate_task_sc (struct inf *inf) |
| static void | inf_set_traced (struct inf *inf, int on) |
| struct proc * | inf_tid_to_thread (struct inf *inf, int tid) |
| static struct proc * | inf_port_to_thread (struct inf *inf, mach_port_t port) |
| void | inf_threads (struct inf *inf, inf_threads_ftype *f, void *arg) |
| int | inf_update_procs (struct inf *inf) |
| static void | inf_update_signal_thread (struct inf *inf) |
| int | exc_server (mach_msg_header_t *, mach_msg_header_t *) |
| int | msg_reply_server (mach_msg_header_t *, mach_msg_header_t *) |
| int | notify_server (mach_msg_header_t *, mach_msg_header_t *) |
| int | process_reply_server (mach_msg_header_t *, mach_msg_header_t *) |
| static ptid_t | gnu_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, int options) |
| kern_return_t | S_exception_raise_request (mach_port_t port, mach_port_t reply_port, thread_t thread_port, task_t task_port, int exception, int code, int subcode) |
| static void | inf_task_died_status (struct inf *inf) |
| kern_return_t | do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port) |
| ILL_RPC (do_mach_notify_no_senders, mach_port_t notify, mach_port_mscount_t count) ILL_RPC(do_mach_notify_port_deleted | |
| mach_port_t mach_port_t name | ILL_RPC (do_mach_notify_msg_accepted, mach_port_t notify, mach_port_t name) ILL_RPC(do_mach_notify_port_destroyed |
| mach_port_t mach_port_t name mach_port_t mach_port_t name | ILL_RPC (do_mach_notify_send_once, mach_port_t notify) kern_return_t S_proc_wait_reply(mach_port_t reply |
| inf_debug (inf, "err = %s, pid = %d, status = 0x%x, sigcode = %d", err ? safe_strerror(err) :"0", pid, status, sigcode) | |
| if (err &&proc_wait_pid &&!inf->task||!inf->task->port) | |
| else | if (pid==inf->pid) |
| ILL_RPC (S_proc_setmsgport_reply, mach_port_t reply_port, kern_return_t return_code, mach_port_t oldmsgport) ILL_RPC(S_proc_getmsgport_reply | |
| mach_port_t kern_return_t mach_port_t msgports | ILL_RPC (S_proc_pid2task_reply, mach_port_t reply_port, kern_return_t return_code, mach_port_t task) ILL_RPC(S_proc_task2pid_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid | ILL_RPC (S_proc_task2proc_reply, mach_port_t reply_port, kern_return_t return_code, mach_port_t proc) ILL_RPC(S_proc_proc2task_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task | ILL_RPC (S_proc_pid2proc_reply, mach_port_t reply_port, kern_return_t return_code, mach_port_t proc) ILL_RPC(S_proc_getprocinfo_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt | ILL_RPC (S_proc_getprocargs_reply, mach_port_t reply_port, kern_return_t return_code, data_t procargs, mach_msg_type_number_t procargsCnt) ILL_RPC(S_proc_getprocenv_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt | ILL_RPC (S_proc_getloginid_reply, mach_port_t reply_port, kern_return_t return_code, pid_t login_id) ILL_RPC(S_proc_getloginpids_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt | ILL_RPC (S_proc_getlogin_reply, mach_port_t reply_port, kern_return_t return_code, string_t logname) ILL_RPC(S_proc_getsid_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid | ILL_RPC (S_proc_getsessionpgids_reply, mach_port_t reply_port, kern_return_t return_code, pidarray_t pgidset, mach_msg_type_number_t pgidsetCnt) ILL_RPC(S_proc_getsessionpids_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt | ILL_RPC (S_proc_getsidport_reply, mach_port_t reply_port, kern_return_t return_code, mach_port_t sessport) ILL_RPC(S_proc_getpgrp_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp | ILL_RPC (S_proc_getpgrppids_reply, mach_port_t reply_port, kern_return_t return_code, pidarray_t pidset, mach_msg_type_number_t pidsetCnt) ILL_RPC(S_proc_get_tty_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty | ILL_RPC (S_proc_getnports_reply, mach_port_t reply_port, kern_return_t return_code, mach_msg_type_number_t nports) ILL_RPC(S_proc_is_important_reply |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty mach_port_t kern_return_t boolean_t essential | ILL_RPC (S_proc_get_code_reply, mach_port_t reply_port, kern_return_t return_code, vm_address_t start_code, vm_address_t end_code) kern_return_t S_msg_sig_post_untraced_reply(mach_port_t reply |
| if (err==EBUSY) | |
| static void | gnu_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal sig) |
| static void | gnu_kill_inferior (struct target_ops *ops) |
| static void | gnu_mourn_inferior (struct target_ops *ops) |
| static int | inf_pick_first_thread (void) |
| static struct inf * | cur_inf (void) |
| static void | gnu_ptrace_me (void) |
| static void | gnu_create_inferior (struct target_ops *ops, const char *exec_file, const std::string &allargs, char **env, int from_tty) |
| static void | gnu_attach (struct target_ops *ops, const char *args, int from_tty) |
| static void | gnu_detach (struct target_ops *ops, const char *args, int from_tty) |
| static void | gnu_stop (struct target_ops *self, ptid_t ptid) |
| static int | gnu_thread_alive (struct target_ops *ops, ptid_t ptid) |
| static int | gnu_read_inferior (task_t task, CORE_ADDR addr, gdb_byte *myaddr, int length) |
| static int | gnu_write_inferior (task_t task, CORE_ADDR addr, const gdb_byte *myaddr, int length) |
| static enum target_xfer_status | gnu_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, CORE_ADDR memaddr, ULONGEST len, ULONGEST *xfered_len) |
| static enum target_xfer_status | gnu_xfer_auxv (gdb_byte *readbuf, const gdb_byte *writebuf, CORE_ADDR memaddr, ULONGEST len, ULONGEST *xfered_len) |
| static enum target_xfer_status | gnu_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
| static int | gnu_find_memory_regions (struct target_ops *self, find_memory_region_ftype func, void *data) |
| char * | proc_string (struct proc *proc) |
| static const char * | gnu_pid_to_str (struct target_ops *ops, ptid_t ptid) |
| struct target_ops * | gnu_target (void) |
| static void | set_thread_cmd (const char *args, int from_tty) |
| static void | show_thread_cmd (const char *args, int from_tty) |
| static void | set_thread_default_cmd (const char *args, int from_tty) |
| static void | show_thread_default_cmd (const char *args, int from_tty) |
| static int | parse_int_arg (const char *args, char *cmd_prefix) |
| static int | _parse_bool_arg (const char *args, char *t_val, char *f_val, char *cmd_prefix) |
| static void | check_empty (const char *args, char *cmd_prefix) |
| static struct proc * | cur_thread (void) |
| static struct inf * | active_inf (void) |
| static void | set_task_pause_cmd (int arg, int from_tty) |
| static void | set_task_pause_cmd (const char *args, int from_tty) |
| static void | show_task_pause_cmd (const char *args, int from_tty) |
| static void | set_task_detach_sc_cmd (const char *args, int from_tty) |
| static void | show_task_detach_sc_cmd (const char *args, int from_tty) |
| static void | set_thread_default_pause_cmd (const char *args, int from_tty) |
| static void | show_thread_default_pause_cmd (const char *args, int from_tty) |
| static void | set_thread_default_run_cmd (const char *args, int from_tty) |
| static void | show_thread_default_run_cmd (const char *args, int from_tty) |
| static void | set_thread_default_detach_sc_cmd (const char *args, int from_tty) |
| static void | show_thread_default_detach_sc_cmd (const char *args, int from_tty) |
| static void | steal_exc_port (struct proc *proc, mach_port_t name) |
| static void | set_task_exc_port_cmd (const char *args, int from_tty) |
| static void | set_stopped_cmd (const char *args, int from_tty) |
| static void | show_stopped_cmd (const char *args, int from_tty) |
| static void | set_sig_thread_cmd (const char *args, int from_tty) |
| static void | show_sig_thread_cmd (const char *args, int from_tty) |
| static void | set_signals_cmd (int arg, int from_tty) |
| static void | set_signals_cmd (const char *args, int from_tty) |
| static void | show_signals_cmd (const char *args, int from_tty) |
| static void | set_exceptions_cmd (int arg, int from_tty) |
| static void | set_exceptions_cmd (const char *args, int from_tty) |
| static void | show_exceptions_cmd (const char *args, int from_tty) |
| static void | set_task_cmd (const char *args, int from_tty) |
| static void | show_task_cmd (const char *args, int from_tty) |
| static void | set_noninvasive_cmd (const char *args, int from_tty) |
| static void | info_port_rights (const char *args, mach_port_type_t only) |
| static void | info_send_rights_cmd (const char *args, int from_tty) |
| static void | info_recv_rights_cmd (const char *args, int from_tty) |
| static void | info_port_sets_cmd (const char *args, int from_tty) |
| static void | info_dead_names_cmd (const char *args, int from_tty) |
| static void | info_port_rights_cmd (const char *args, int from_tty) |
| static void | add_task_commands (void) |
| static void | set_thread_pause_cmd (const char *args, int from_tty) |
| static void | show_thread_pause_cmd (const char *args, int from_tty) |
| static void | set_thread_run_cmd (const char *args, int from_tty) |
| static void | show_thread_run_cmd (const char *args, int from_tty) |
| static void | set_thread_detach_sc_cmd (const char *args, int from_tty) |
| static void | show_thread_detach_sc_cmd (const char *args, int from_tty) |
| static void | set_thread_exc_port_cmd (const char *args, int from_tty) |
| static void | thread_takeover_sc_cmd (const char *args, int from_tty) |
| static void | add_thread_commands (void) |
| void | _initialize_gnu_nat (void) |
Variables | |
| static process_t | proc_server = MACH_PORT_NULL |
| int | proc_wait_pid = 0 |
| int | proc_waits_pending = 0 |
| int | gnu_debug_flag = 0 |
| static int | next_thread_id = 1 |
| struct inf * | gnu_current_inf = 0 |
| struct inf * | waiting_inf |
| mach_port_t | notify |
| mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t | err |
| mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int | status |
| mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int int | sigcode |
| mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int int rusage_t | rusage |
| mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int int rusage_t pid_t | pid |
| else inf wait | suppress = 1 |
| return | |
| mach_port_t | reply_port |
| mach_port_t kern_return_t | return_code |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int | flags |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t | procinfo |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t | procinfoCnt |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t | threadwaits |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t | procenv |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t | pids |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t | pidset |
| struct obstack | region_obstack |
| static struct cmd_list_element * | set_task_cmd_list = 0 |
| static struct cmd_list_element * | show_task_cmd_list = 0 |
| struct cmd_list_element * | thread_cmd_list |
| struct cmd_list_element * | set_thread_cmd_list = NULL |
| struct cmd_list_element * | show_thread_cmd_list = NULL |
| struct cmd_list_element * | set_thread_default_cmd_list = NULL |
| struct cmd_list_element * | show_thread_default_cmd_list = NULL |
| #define CHK_GOTO_OUT | ( | str, | |
| ret | |||
| ) | do if (ret != KERN_SUCCESS) { errstr = #str; goto out; } while(0) |
Definition at line 2334 of file gnu-nat.c.
Referenced by gnu_write_inferior().
| #define ILL_RPC | ( | fun, | |
| ... | |||
| ) |
| #define inf_debug | ( | _inf, | |
| msg, | |||
| args... | |||
| ) |
Definition at line 118 of file gnu-nat.c.
Referenced by do_mach_notify_dead_name(), gnu_attach(), gnu_create_inferior(), gnu_mourn_inferior(), gnu_ptrace_me(), gnu_resume(), gnu_wait(), gnu_xfer_auxv(), gnu_xfer_memory(), if(), inf_attach(), inf_cleanup(), inf_clear_wait(), inf_continue(), inf_detach(), inf_restore_exc_ports(), inf_set_pid(), inf_set_step_thread(), inf_signal(), inf_startup(), inf_steal_exc_ports(), inf_update_suspends(), inf_validate_procs(), and S_exception_raise_request().
| #define INF_MSGPORT_RPC | ( | inf, | |
| rpc_expr | |||
| ) |
Definition at line 137 of file gnu-nat.c.
Referenced by inf_signal().
| #define INF_RESUME_MSGPORT_RPC | ( | inf, | |
| rpc_expr | |||
| ) |
Definition at line 145 of file gnu-nat.c.
Referenced by inf_set_traced(), and inf_signal().
| #define NAME gdb_signal_to_name (sig) |
Referenced by inf_signal().
| #define parse_bool_arg | ( | args, | |
| cmd_prefix | |||
| ) | _parse_bool_arg (args, "on", "off", cmd_prefix) |
Definition at line 2830 of file gnu-nat.c.
Referenced by set_exceptions_cmd(), set_noninvasive_cmd(), set_signals_cmd(), set_task_pause_cmd(), set_thread_default_pause_cmd(), set_thread_default_run_cmd(), set_thread_pause_cmd(), and set_thread_run_cmd().
| int __proc_pid | ( | struct proc * | proc | ) |
| void _initialize_gnu_nat | ( | void | ) |
Definition at line 3535 of file gnu-nat.c.
References _, add_setshow_boolean_cmd(), add_task_commands(), add_thread_commands(), class_maintenance, gnu_debug_flag, proc_server, setdebuglist, and showdebuglist.
|
static |
Definition at line 2818 of file gnu-nat.c.
Referenced by set_stopped_cmd().
Definition at line 613 of file gnu-nat.c.
References proc::cur_sc, proc::exc_port, proc::inf, inf_clear_wait(), inf_set_step_thread(), proc::next, proc::port, proc_debug, proc_restore_exc_port(), proc_update_sc(), proc::sc, inf::signal_thread, inf::step_thread, inf_wait::thread, inf::wait, and xfree().
Referenced by inf_set_pid(), and inf_validate_procs().
|
static |
Definition at line 423 of file gnu-nat.c.
References err, proc::exc_port, proc_get_exception_port(), and proc::saved_exc_port.
Referenced by proc_restore_exc_port(), and proc_steal_exc_port().
|
static |
Definition at line 2854 of file gnu-nat.c.
References _, cur_inf(), error(), arm-linux::inf, and inf::task.
Referenced by info_port_rights(), show_sig_thread_cmd(), and show_stopped_cmd().
|
static |
Definition at line 3237 of file gnu-nat.c.
References _, add_alias_cmd(), add_cmd(), add_info(), add_info_alias(), add_prefix_cmd(), class_run, info_dead_names_cmd(), info_port_rights_cmd(), info_port_sets_cmd(), info_recv_rights_cmd(), info_send_rights_cmd(), no_class, set_exceptions_cmd(), set_noninvasive_cmd(), set_sig_thread_cmd(), set_signals_cmd(), set_stopped_cmd(), set_task_cmd(), set_task_cmd_list, set_task_detach_sc_cmd(), set_task_exc_port_cmd(), set_task_pause_cmd(), set_thread_default_cmd_list, set_thread_default_detach_sc_cmd(), set_thread_default_pause_cmd(), set_thread_default_run_cmd(), setlist, show_exceptions_cmd(), show_sig_thread_cmd(), show_signals_cmd(), show_stopped_cmd(), show_task_cmd(), show_task_cmd_list, show_task_detach_sc_cmd(), show_task_pause_cmd(), show_thread_default_cmd_list, show_thread_default_detach_sc_cmd(), show_thread_default_pause_cmd(), show_thread_default_run_cmd(), and showlist.
Referenced by _initialize_gnu_nat().
|
static |
Definition at line 3471 of file gnu-nat.c.
References _, add_alias_cmd(), add_cmd(), add_prefix_cmd(), class_run, no_class, set_thread_cmd(), set_thread_cmd_list, set_thread_default_cmd(), set_thread_default_cmd_list, set_thread_detach_sc_cmd(), set_thread_exc_port_cmd(), set_thread_pause_cmd(), set_thread_run_cmd(), setlist, show_thread_cmd(), show_thread_cmd_list, show_thread_default_cmd(), show_thread_default_cmd_list, show_thread_detach_sc_cmd(), show_thread_pause_cmd(), show_thread_run_cmd(), showlist, thread_cmd_list, and thread_takeover_sc_cmd().
Referenced by _initialize_gnu_nat().
|
static |
Definition at line 2834 of file gnu-nat.c.
Referenced by show_exceptions_cmd(), show_sig_thread_cmd(), show_signals_cmd(), show_stopped_cmd(), show_task_cmd(), show_task_detach_sc_cmd(), show_task_pause_cmd(), show_thread_default_detach_sc_cmd(), show_thread_default_pause_cmd(), show_thread_default_run_cmd(), show_thread_detach_sc_cmd(), show_thread_pause_cmd(), and show_thread_run_cmd().
|
static |
Definition at line 2117 of file gnu-nat.c.
References gnu_current_inf, and make_inf().
Referenced by active_inf(), cur_thread(), gnu_attach(), gnu_create_inferior(), gnu_ptrace_me(), set_exceptions_cmd(), set_sig_thread_cmd(), set_signals_cmd(), set_stopped_cmd(), set_task_detach_sc_cmd(), set_task_exc_port_cmd(), set_task_pause_cmd(), set_thread_default_detach_sc_cmd(), set_thread_default_pause_cmd(), set_thread_default_run_cmd(), show_exceptions_cmd(), show_signals_cmd(), show_task_cmd(), show_task_detach_sc_cmd(), show_task_pause_cmd(), show_thread_default_detach_sc_cmd(), show_thread_default_pause_cmd(), and show_thread_default_run_cmd().
|
static |
Definition at line 2842 of file gnu-nat.c.
References _, cur_inf(), error(), inf_tid_to_thread(), inferior_ptid, and ptid_get_lwp().
Referenced by set_thread_detach_sc_cmd(), set_thread_exc_port_cmd(), set_thread_pause_cmd(), set_thread_run_cmd(), show_thread_detach_sc_cmd(), show_thread_pause_cmd(), show_thread_run_cmd(), and thread_takeover_sc_cmd().
| kern_return_t do_mach_notify_dead_name | ( | mach_port_t | notify, |
| mach_port_t | dead_port | ||
| ) |
Definition at line 1759 of file gnu-nat.c.
References proc::dead, inf_debug, inf_port_to_thread(), inf_task_died_status(), inf::pid, proc::port, proc_debug, proc_wait_pid, inf_wait::suppress, inf::task, inf::threads_up_to_date, inf::wait, and waiting_inf.
| int exc_server | ( | mach_msg_header_t * | , |
| mach_msg_header_t * | |||
| ) |
Referenced by gnu_wait().
|
static |
Definition at line 2194 of file gnu-nat.c.
References _, inferior::args, inferior::attach_flag, cur_inf(), current_inferior(), error(), gdb_flush(), gdb_stdout, get_exec_file(), inf_attach(), inf_debug, inf_pick_first_thread(), inf_set_traced(), inf_update_procs(), inf_update_signal_thread(), inf_validate_procinfo(), inferior::inferior(), inferior_appeared(), inferior_ptid, target_terminal::init(), parse_pid_to_attach(), pid, printf_unfiltered(), ptid_build(), push_target(), and inf::want_signals.
Referenced by gnu_target().
|
static |
Definition at line 2135 of file gnu-nat.c.
References add_thread_silent(), cur_inf(), fork_inferior(), gdb_startup_inferior(), gnu_ptrace_me(), inf_attach(), inf_debug, inf_pick_first_thread(), inf_restore_exc_ports(), inf_resume(), inf_set_traced(), inf_steal_exc_ports(), inf_update_signal_thread(), inf_validate_procinfo(), inferior_ptid, inf::nomsg, inf::pending_execs, inf::pid, pid, pid_to_ptid(), prune_threads(), ptid_build(), push_target(), START_INFERIOR_TRAPS_EXPECTED, thread_change_ptid(), inf::traced, inf::want_exceptions, and inf::want_signals.
Referenced by gnu_target().
|
static |
Definition at line 2258 of file gnu-nat.c.
References detach_inferior(), gdb_flush(), gdb_stdout, get_exec_file(), gnu_current_inf, inf_child_maybe_unpush_target(), inf_detach(), inferior_ptid, null_ptid, inf::pid, pid, and printf_unfiltered().
Referenced by gnu_target().
|
static |
Definition at line 2621 of file gnu-nat.c.
References _, err, gnu_current_inf, offset, proc::port, vm_region_list::protection, inf::task, VM_MIN_ADDRESS, and warning().
Referenced by gnu_target().
|
static |
Definition at line 2079 of file gnu-nat.c.
References gnu_current_inf, inf_set_pid(), inferior_ptid, proc::port, proc_debug, target_mourn_inferior(), and inf::task.
Referenced by gnu_target().
|
static |
Definition at line 2094 of file gnu-nat.c.
References gnu_current_inf, inf_child_mourn_inferior(), inf_debug, and inf_detach().
Referenced by gnu_target().
|
static |
Definition at line 2715 of file gnu-nat.c.
References gnu_current_inf, inf_tid_to_thread(), proc_string(), ptid_get_lwp(), selftests::ptid::tid, and xsnprintf().
Referenced by gnu_target().
|
static |
Definition at line 2125 of file gnu-nat.c.
References cur_inf(), inf_debug, ptrace(), and trace_start_error_with_name().
Referenced by gnu_create_inferior().
Definition at line 2304 of file gnu-nat.c.
References _, err, safe_strerror(), and warning().
Referenced by gnu_xfer_memory().
|
static |
Definition at line 2002 of file gnu-nat.c.
References _, error(), inf::event_port, inf_wait::exc, gdb_signal_to_name(), gnu_current_inf, inf_continue(), inf_debug, inf_resume(), inf_set_step_thread(), inf_set_threads_resume_sc(), inf_signal(), inf_tid_to_thread(), inf_update_procs(), inf_validate_procinfo(), inferior_ptid, minus_one_ptid, inf::nomsg, proc_abort(), proc_string(), ptid_equal(), ptid_get_lwp(), ptid_get_pid(), exc_state::reply, target_waitstatus::sig, inf_wait::status, inf::step_thread, inf::stopped, target_pid_to_str(), inf_wait::thread, target_waitstatus::value, inf::wait, and warning().
Referenced by gnu_target().
|
static |
| struct target_ops* gnu_target | ( | void | ) |
Definition at line 2737 of file gnu-nat.c.
References gnu_attach(), gnu_create_inferior(), gnu_detach(), gnu_find_memory_regions(), gnu_kill_inferior(), gnu_mourn_inferior(), gnu_pid_to_str(), gnu_resume(), gnu_stop(), gnu_thread_alive(), gnu_wait(), gnu_xfer_partial(), inf_child_target(), target_ops::to_attach, target_ops::to_attach_no_wait, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_find_memory_regions, target_ops::to_kill, target_ops::to_mourn_inferior, target_ops::to_pid_to_str, target_ops::to_resume, target_ops::to_stop, target_ops::to_thread_alive, target_ops::to_wait, and target_ops::to_xfer_partial.
Referenced by _initialize_i386gnu_nat().
|
static |
Definition at line 2292 of file gnu-nat.c.
References gnu_current_inf, inf_tid_to_thread(), inf_update_procs(), and ptid_get_lwp().
Referenced by gnu_target().
|
static |
Definition at line 1465 of file gnu-nat.c.
References _, proc::dead, err, error(), inf::event_port, exc_server(), gdb_assert, gnu_current_inf, arm-linux::inf, inf_clear_wait(), inf_debug, inf_resume(), inf_set_pid(), inf_suspend(), inf_tid_to_thread(), inf_update_procs(), inf_update_suspends(), inf_validate_procs(), inf_validate_task_sc(), inferior_ptid, target_waitstatus::kind, minus_one_ptid, msg_reply_server(), inf::no_wait, notify_server(), proc::pause_sc, inf::pause_sc, inf::pending_execs, inf::pid, proc::port, proc_server, proc_wait_pid, proc_waits_pending, process_reply_server(), ptid_build(), ptid_equal(), ptid_get_lwp(), safe_strerror(), proc::sc, target_waitstatus::sig, inf_wait::status, status, inf_wait::suppress, target_pid_to_str(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_LOADED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_SPURIOUS, TARGET_WAITKIND_STOPPED, inf::task, inf_wait::thread, inf::threads, proc::tid, type, target_waitstatus::value, inf::wait, waiting_inf, warning(), and WUNTRACED.
Referenced by gnu_target().
|
static |
Definition at line 2350 of file gnu-nat.c.
References _, CHK_GOTO_OUT, err, vm_region_list::length, vm_region_list::next, offset, vm_region_list::protection, region_obstack, scan(), vm_region_list::start, and warning().
Referenced by gnu_xfer_memory().
|
static |
Definition at line 2549 of file gnu-nat.c.
References err, gnu_current_inf, host_address_to_string, inf_debug, paddress(), proc::port, proc_server, pulongest(), target_gdbarch(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and inf::task.
Referenced by gnu_xfer_partial().
|
static |
Definition at line 2510 of file gnu-nat.c.
References gdb_assert, gnu_current_inf, gnu_read_inferior(), gnu_write_inferior(), host_address_to_string, inf_debug, paddress(), proc::port, pulongest(), target_gdbarch(), TARGET_XFER_E_IO, TARGET_XFER_OK, and inf::task.
Referenced by gnu_xfer_partial().
|
static |
Definition at line 2603 of file gnu-nat.c.
References gnu_xfer_auxv(), gnu_xfer_memory(), offset, TARGET_OBJECT_AUXV, TARGET_OBJECT_MEMORY, and TARGET_XFER_E_IO.
Referenced by gnu_target().
| if | ( | err &&proc_wait_pid && | !inf->task||!inf->task->port | ) |
Definition at line 1857 of file gnu-nat.c.
References inf_debug, target_waitstatus::kind, inf_wait::status, status, inf::stopped, store_waitstatus(), TARGET_WAITKIND_STOPPED, and inf::wait.
| else if | ( | err | = = EBUSY | ) |
Definition at line 1942 of file gnu-nat.c.
References target_waitstatus::kind, target_waitstatus::sig, inf_wait::status, TARGET_WAITKIND_STOPPED, target_waitstatus::value, and inf::wait.
| ILL_RPC | ( | do_mach_notify_no_senders | , |
| mach_port_t | notify, | ||
| mach_port_mscount_t | count | ||
| ) |
| mach_port_t mach_port_t name ILL_RPC | ( | do_mach_notify_msg_accepted | , |
| mach_port_t | notify, | ||
| mach_port_t | name | ||
| ) |
| mach_port_t mach_port_t name mach_port_t mach_port_t name ILL_RPC | ( | do_mach_notify_send_once | , |
| mach_port_t | notify | ||
| ) |
| ILL_RPC | ( | S_proc_setmsgport_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_port_t | oldmsgport | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports ILL_RPC | ( | S_proc_pid2task_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_port_t | task | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid ILL_RPC | ( | S_proc_task2proc_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_port_t | proc | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task ILL_RPC | ( | S_proc_pid2proc_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_port_t | proc | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt ILL_RPC | ( | S_proc_getprocargs_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| data_t | procargs, | ||
| mach_msg_type_number_t | procargsCnt | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt ILL_RPC | ( | S_proc_getloginid_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| pid_t | login_id | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt ILL_RPC | ( | S_proc_getlogin_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| string_t | logname | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid ILL_RPC | ( | S_proc_getsessionpgids_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| pidarray_t | pgidset, | ||
| mach_msg_type_number_t | pgidsetCnt | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt ILL_RPC | ( | S_proc_getsidport_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_port_t | sessport | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp ILL_RPC | ( | S_proc_getpgrppids_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| pidarray_t | pidset, | ||
| mach_msg_type_number_t | pidsetCnt | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty ILL_RPC | ( | S_proc_getnports_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| mach_msg_type_number_t | nports | ||
| ) |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty mach_port_t kern_return_t boolean_t essential ILL_RPC | ( | S_proc_get_code_reply | , |
| mach_port_t | reply_port, | ||
| kern_return_t | return_code, | ||
| vm_address_t | start_code, | ||
| vm_address_t | end_code | ||
| ) |
| void inf_attach | ( | struct inf * | inf, |
| int | pid | ||
| ) |
Definition at line 1290 of file gnu-nat.c.
References inf_debug, inf_detach(), inf_startup(), inf::pid, and pid.
Referenced by gnu_attach(), and gnu_create_inferior().
| void inf_cleanup | ( | struct inf * | inf | ) |
Definition at line 702 of file gnu-nat.c.
References inf::event_port, inf_clear_wait(), inf_debug, inf_set_pid(), inf::no_wait, inf::nomsg, inf::pending_execs, inf::pid, inf::running, inf::stopped, and inf::traced.
Referenced by inf_detach(), and inf_startup().
| void inf_clear_wait | ( | struct inf * | inf | ) |
Definition at line 682 of file gnu-nat.c.
References inf_wait::exc, exc_state::handler, inf_debug, target_waitstatus::kind, exc_state::reply, inf_wait::status, inf_wait::suppress, TARGET_WAITKIND_SPURIOUS, inf_wait::thread, and inf::wait.
Referenced by _proc_free(), gnu_wait(), inf_cleanup(), and inf_detach().
| void inf_continue | ( | struct inf * | inf | ) |
Definition at line 1424 of file gnu-nat.c.
References _, err, inf_debug, proc::next, inf::pid, proc::port, proc_server, safe_strerror(), inf::stopped, inf::threads, and warning().
Referenced by gnu_resume(), and inf_detach().
| void inf_detach | ( | struct inf * | inf | ) |
Definition at line 1248 of file gnu-nat.c.
References proc::detach_sc, inf::detach_sc, inf_cleanup(), inf_clear_wait(), inf_continue(), inf_debug, inf_set_step_thread(), inf_set_traced(), inf_signal(), inf_update_suspends(), inf_validate_procinfo(), proc::next, inf::nomsg, proc_restore_exc_port(), proc::sc, inf::stopped, inf::task, and inf::threads.
Referenced by gnu_detach(), gnu_mourn_inferior(), and inf_attach().
|
static |
Definition at line 2106 of file gnu-nat.c.
References gnu_current_inf, next_thread_id, inf::task, inf::threads, and proc::tid.
Referenced by gnu_attach(), and gnu_create_inferior().
Definition at line 981 of file gnu-nat.c.
References proc::next, proc::port, and inf::threads.
Referenced by do_mach_notify_dead_name(), and S_exception_raise_request().
| void inf_restore_exc_ports | ( | struct inf * | inf | ) |
Definition at line 1318 of file gnu-nat.c.
References inf_debug, inf_set_step_thread(), proc::next, proc_restore_exc_port(), inf::task, and inf::threads.
Referenced by gnu_create_inferior().
| void inf_resume | ( | struct inf * | inf | ) |
Definition at line 1155 of file gnu-nat.c.
References inf_update_procs(), inf_update_suspends(), inf_validate_task_sc(), proc::next, inf::pending_execs, proc::resume_sc, proc::sc, inf::task, and inf::threads.
Referenced by gnu_create_inferior(), gnu_resume(), and gnu_wait().
| void inf_set_pid | ( | struct inf * | inf, |
| pid_t | pid | ||
| ) |
Definition at line 748 of file gnu-nat.c.
References _, _proc_free(), proc::cur_sc, err, error(), inf_debug, inf_validate_procs(), make_proc(), inf::pause_sc, inf::pid, pid, proc::port, proc_server, PROC_TID_TASK, safe_strerror(), proc::sc, inf::task, and inf::threads_up_to_date.
Referenced by gnu_kill_inferior(), gnu_wait(), inf_cleanup(), and inf_startup().
Definition at line 1200 of file gnu-nat.c.
References gdb_assert, inf_debug, inf::pid, proc::port, proc_is_thread, proc_trace(), inf::step_thread, and proc::tid.
Referenced by _proc_free(), gnu_resume(), inf_detach(), inf_restore_exc_ports(), and inf_steal_exc_ports().
Definition at line 1136 of file gnu-nat.c.
References inf_update_procs(), proc::next, proc::pause_sc, proc::resume_sc, proc::run_sc, and inf::threads.
Referenced by gnu_resume(), and inf_set_threads_resume_sc_for_signal_thread().
| int inf_set_threads_resume_sc_for_signal_thread | ( | struct inf * | inf | ) |
Definition at line 1226 of file gnu-nat.c.
References inf_set_threads_resume_sc(), and inf::signal_thread.
|
static |
Definition at line 880 of file gnu-nat.c.
References _, proc::dead, err, INF_RESUME_MSGPORT_RPC, inf::pid, safe_strerror(), inf::task, inf::traced, and warning().
Referenced by gnu_attach(), gnu_create_inferior(), inf_detach(), and set_signals_cmd().
| void inf_signal | ( | struct inf * | inf, |
| enum gdb_signal | sig | ||
| ) |
Definition at line 1336 of file gnu-nat.c.
References _, proc::aborted, exc_state::code, err, error(), inf::event_port, inf_wait::exc, exc_state::exception, gdb_signal_to_host(), exc_state::handler, inf_debug, INF_MSGPORT_RPC, INF_RESUME_MSGPORT_RPC, target_waitstatus::kind, NAME, proc::port, exc_state::reply, safe_strerror(), target_waitstatus::sig, inf_wait::status, inf::stopped, exc_state::subcode, TARGET_WAITKIND_STOPPED, inf::task, inf_wait::thread, target_waitstatus::value, inf::wait, and warning().
Referenced by gnu_resume(), and inf_detach().
| void inf_startup | ( | struct inf * | inf, |
| int | pid | ||
| ) |
Definition at line 725 of file gnu-nat.c.
References _, err, error(), inf::event_port, inf_cleanup(), inf_debug, inf_set_pid(), pid, and safe_strerror().
Referenced by inf_attach().
| void inf_steal_exc_ports | ( | struct inf * | inf | ) |
Definition at line 1303 of file gnu-nat.c.
References inf::event_port, inf_debug, inf_set_step_thread(), proc::next, proc_steal_exc_port(), inf::task, and inf::threads.
Referenced by gnu_create_inferior().
| void inf_suspend | ( | struct inf * | inf | ) |
Definition at line 1180 of file gnu-nat.c.
References inf_update_procs(), inf_update_suspends(), proc::next, proc::pause_sc, inf::pause_sc, proc::sc, inf::task, and inf::threads.
Referenced by gnu_wait(), set_task_pause_cmd(), and set_thread_pause_cmd().
|
static |
Definition at line 1749 of file gnu-nat.c.
References _, target_waitstatus::kind, inf::pid, target_waitstatus::sig, inf_wait::status, TARGET_WAITKIND_SIGNALLED, target_waitstatus::value, inf::wait, and warning().
Referenced by do_mach_notify_dead_name().
| void inf_threads | ( | struct inf * | inf, |
| inf_threads_ftype * | f, | ||
| void * | arg | ||
| ) |
Definition at line 996 of file gnu-nat.c.
References proc::next, and inf::threads.
Definition at line 967 of file gnu-nat.c.
References proc::next, inf::threads, selftests::ptid::tid, and proc::tid.
Referenced by cur_thread(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), and set_sig_thread_cmd().
| int inf_update_procs | ( | struct inf * | inf | ) |
Definition at line 1123 of file gnu-nat.c.
References inf_validate_procs(), inf::task, and inf::threads_up_to_date.
Referenced by gnu_attach(), gnu_fetch_registers(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), inf_resume(), inf_set_threads_resume_sc(), inf_suspend(), and S_exception_raise_request().
|
static |
Definition at line 1238 of file gnu-nat.c.
References proc::next, inf::signal_thread, and inf::threads.
Referenced by gnu_attach(), and gnu_create_inferior().
| int inf_update_suspends | ( | struct inf * | inf | ) |
Definition at line 916 of file gnu-nat.c.
References proc::cur_sc, inf_debug, proc::next, inf::pending_execs, proc_update_sc(), inf::running, proc::sc, inf::task, inf::threads, and inf::threads_up_to_date.
Referenced by gnu_wait(), inf_detach(), inf_resume(), inf_suspend(), and proc_abort().
|
static |
Definition at line 801 of file gnu-nat.c.
References err, inf::nomsg, inf::pid, proc_server, inf::stopped, and inf::traced.
Referenced by gnu_attach(), gnu_create_inferior(), gnu_resume(), and inf_detach().
| void inf_validate_procs | ( | struct inf * | inf | ) |
Definition at line 1007 of file gnu-nat.c.
References _proc_free(), add_thread(), add_thread_silent(), proc::dead, err, inf_debug, inferior_ptid, make_proc(), memset(), proc::next, next_thread_id, inf::pending_execs, inf::pid, pid_to_ptid(), proc::port, proc_debug, ptid_build(), ptid_equal(), inf::running, inf::task, thread_change_ptid(), inf::threads, inf::threads_up_to_date, and proc::tid.
Referenced by gnu_wait(), inf_set_pid(), and inf_update_procs().
|
static |
Definition at line 828 of file gnu-nat.c.
References _, proc::cur_sc, proc::dead, err, error(), inf::pid, proc_server, query(), and inf::task.
Referenced by gnu_wait(), and inf_resume().
|
static |
Definition at line 3224 of file gnu-nat.c.
References info_port_rights().
Referenced by add_task_commands().
|
static |
Definition at line 3172 of file gnu-nat.c.
References _, active_inf(), err, error(), parse_to_comma_and_eval(), proc::port, safe_strerror(), inf::task, value_as_long(), value_free_to_mark(), and value_mark().
Referenced by info_dead_names_cmd(), info_port_rights_cmd(), info_port_sets_cmd(), info_recv_rights_cmd(), and info_send_rights_cmd().
|
static |
Definition at line 3230 of file gnu-nat.c.
References info_port_rights().
Referenced by add_task_commands().
|
static |
Definition at line 3218 of file gnu-nat.c.
References info_port_rights().
Referenced by add_task_commands().
|
static |
Definition at line 3212 of file gnu-nat.c.
References info_port_rights().
Referenced by add_task_commands().
|
static |
Definition at line 3206 of file gnu-nat.c.
References info_port_rights().
Referenced by add_task_commands().
|
static |
Definition at line 648 of file gnu-nat.c.
References inf::default_thread_detach_sc, inf::default_thread_pause_sc, inf::default_thread_run_sc, inf::detach_sc, inf::event_port, inf_wait::exc, exc_state::handler, arm-linux::inf, target_waitstatus::kind, inf::no_wait, inf::nomsg, inf::pause_sc, inf::pending_execs, inf::pid, exc_state::reply, inf::running, inf::signal_thread, inf_wait::status, inf::step_thread, inf::stopped, TARGET_WAITKIND_SPURIOUS, inf::task, inf_wait::thread, inf::threads, inf::threads_up_to_date, inf::traced, inf::wait, inf::want_exceptions, inf::want_signals, and XNEW.
Referenced by cur_inf().
Definition at line 549 of file gnu-nat.c.
References _, proc::aborted, proc::cur_sc, proc::dead, inf::default_thread_detach_sc, inf::default_thread_pause_sc, inf::default_thread_run_sc, proc::detach_sc, err, inf::event_port, proc::exc_port, arm-linux::inf, proc::inf, proc::next, proc::pause_sc, proc::port, proc_debug, proc_is_task, proc_steal_exc_port(), proc::resume_sc, proc::run_sc, safe_strerror(), proc::saved_exc_port, proc::sc, proc::state_changed, proc::state_valid, selftests::ptid::tid, proc::tid, inf::want_exceptions, warning(), and XNEW.
Referenced by inf_set_pid(), and inf_validate_procs().
| int msg_reply_server | ( | mach_msg_header_t * | , |
| mach_msg_header_t * | |||
| ) |
Referenced by gnu_wait().
| int notify_server | ( | mach_msg_header_t * | , |
| mach_msg_header_t * | |||
| ) |
Referenced by gnu_wait().
|
static |
Definition at line 2803 of file gnu-nat.c.
Referenced by set_task_detach_sc_cmd(), set_thread_default_detach_sc_cmd(), and set_thread_detach_sc_cmd().
| void proc_abort | ( | struct proc * | proc, |
| int | force | ||
| ) |
Definition at line 328 of file gnu-nat.c.
References _, proc::aborted, proc::cur_sc, inf_wait::exc, gdb_assert, proc::inf, inf_update_suspends(), proc::port, proc_debug, proc_is_thread, proc_string(), exc_state::reply, inf::running, proc::sc, inf::task, inf_wait::thread, inf::wait, and warning().
Referenced by gnu_resume(), and proc_get_state().
| kern_return_t proc_get_exception_port | ( | struct proc * | proc, |
| mach_port_t * | port | ||
| ) |
Definition at line 402 of file gnu-nat.c.
References proc::port, and proc_is_task.
Referenced by _proc_get_exc_port().
| thread_state_t proc_get_state | ( | struct proc * | proc, |
| int | will_modify | ||
| ) |
Definition at line 365 of file gnu-nat.c.
References proc::aborted, err, proc::port, proc_abort(), proc_debug, proc::state, proc::state_changed, proc::state_valid, THREAD_STATE_FLAVOR, and THREAD_STATE_SIZE.
Referenced by gnu_fetch_registers(), gnu_store_registers(), and proc_trace().
| void proc_restore_exc_port | ( | struct proc * | proc | ) |
Definition at line 489 of file gnu-nat.c.
References _, _proc_get_exc_port(), err, proc::exc_port, proc_debug, proc_set_exception_port(), proc_string(), safe_strerror(), proc::saved_exc_port, and warning().
Referenced by _proc_free(), inf_detach(), and inf_restore_exc_ports().
| kern_return_t proc_set_exception_port | ( | struct proc * | proc, |
| mach_port_t | port | ||
| ) |
Definition at line 412 of file gnu-nat.c.
References proc::port, proc_debug, and proc_is_task.
Referenced by proc_restore_exc_port(), proc_steal_exc_port(), and steal_exc_port().
| void proc_steal_exc_port | ( | struct proc * | proc, |
| mach_port_t | exc_port | ||
| ) |
Definition at line 446 of file gnu-nat.c.
References _, _proc_get_exc_port(), err, proc::exc_port, proc_debug, proc_set_exception_port(), proc_string(), safe_strerror(), proc::saved_exc_port, and warning().
Referenced by inf_steal_exc_ports(), make_proc(), and proc_trace().
| char* proc_string | ( | struct proc * | proc | ) |
Definition at line 2702 of file gnu-nat.c.
References proc::inf, inf::pid, proc_is_task, proc::tid, and xsnprintf().
Referenced by fetch_fpregs(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), proc_abort(), proc_restore_exc_port(), proc_steal_exc_port(), show_sig_thread_cmd(), show_thread_detach_sc_cmd(), show_thread_pause_cmd(), show_thread_run_cmd(), steal_exc_port(), and store_fpregs().
| int proc_trace | ( | struct proc * | proc, |
| int | set | ||
| ) |
Definition at line 519 of file gnu-nat.c.
References inf::event_port, proc::exc_port, proc::inf, proc_debug, proc_get_state(), proc_steal_exc_port(), THREAD_STATE_CLEAR_TRACED, and THREAD_STATE_SET_TRACED.
Referenced by inf_set_step_thread().
| int proc_update_sc | ( | struct proc * | proc | ) |
Definition at line 262 of file gnu-nat.c.
References proc::aborted, proc::cur_sc, err, proc::fetched_regs, gdb_assert, proc::port, proc_debug, proc_is_task, proc_is_thread, safe_strerror(), proc::sc, proc::state, proc::state_changed, proc::state_valid, THREAD_STATE_FLAVOR, and THREAD_STATE_SIZE.
Referenced by _proc_free(), and inf_update_suspends().
| int process_reply_server | ( | mach_msg_header_t * | , |
| mach_msg_header_t * | |||
| ) |
Referenced by gnu_wait().
| kern_return_t S_exception_raise_request | ( | mach_port_t | port, |
| mach_port_t | reply_port, | ||
| thread_t | thread_port, | ||
| task_t | task_port, | ||
| int | exception, | ||
| int | code, | ||
| int | subcode | ||
| ) |
Definition at line 1662 of file gnu-nat.c.
References proc::aborted, exc_state::code, code, inf_wait::exc, proc::exc_port, exc_state::exception, gdb_assert, gdb_signal_from_host(), exc_state::handler, inf_debug, inf_port_to_thread(), inf_update_procs(), target_waitstatus::kind, proc::port, exc_state::reply, reply_port, proc::saved_exc_port, target_waitstatus::sig, inf_wait::status, exc_state::subcode, inf_wait::suppress, TARGET_WAITKIND_STOPPED, inf::task, inf_wait::thread, target_waitstatus::value, inf::wait, and waiting_inf.
|
static |
Definition at line 3095 of file gnu-nat.c.
References cur_inf(), and inf::want_exceptions.
Referenced by add_task_commands(), set_exceptions_cmd(), and set_noninvasive_cmd().
|
static |
Definition at line 3106 of file gnu-nat.c.
References parse_bool_arg, and set_exceptions_cmd().
|
static |
Definition at line 3160 of file gnu-nat.c.
References parse_bool_arg, set_exceptions_cmd(), set_signals_cmd(), and set_task_pause_cmd().
Referenced by add_task_commands().
|
static |
Definition at line 3033 of file gnu-nat.c.
References _, cur_inf(), error(), inf_tid_to_thread(), parse_thread_id(), thread_info::ptid, ptid_get_lwp(), and inf::signal_thread.
Referenced by add_task_commands().
|
static |
Definition at line 3065 of file gnu-nat.c.
References cur_inf(), inf_set_traced(), inf::task, inf::traced, and inf::want_signals.
Referenced by add_task_commands(), set_noninvasive_cmd(), and set_signals_cmd().
|
static |
Definition at line 3077 of file gnu-nat.c.
References parse_bool_arg, and set_signals_cmd().
|
static |
Definition at line 3017 of file gnu-nat.c.
References _parse_bool_arg(), cur_inf(), and inf::stopped.
Referenced by add_task_commands().
|
static |
Definition at line 3125 of file gnu-nat.c.
References printf_unfiltered().
Referenced by add_task_commands().
|
static |
Definition at line 2897 of file gnu-nat.c.
References cur_inf(), inf::detach_sc, and parse_int_arg().
Referenced by add_task_commands().
|
static |
Definition at line 3007 of file gnu-nat.c.
References _, cur_inf(), error(), parse_and_eval_address(), steal_exc_port(), and inf::task.
Referenced by add_task_commands().
|
static |
Definition at line 2865 of file gnu-nat.c.
References cur_inf(), inf_suspend(), and inf::pause_sc.
Referenced by add_task_commands(), set_noninvasive_cmd(), and set_task_pause_cmd().
|
static |
Definition at line 2879 of file gnu-nat.c.
References parse_bool_arg, and set_task_pause_cmd().
|
static |
Definition at line 2775 of file gnu-nat.c.
References printf_unfiltered().
Referenced by add_thread_commands().
|
static |
Definition at line 2789 of file gnu-nat.c.
References printf_unfiltered().
Referenced by add_thread_commands().
|
static |
Definition at line 2954 of file gnu-nat.c.
References cur_inf(), inf::default_thread_detach_sc, and parse_int_arg().
Referenced by add_task_commands().
|
static |
Definition at line 2914 of file gnu-nat.c.
References cur_inf(), inf::default_thread_pause_sc, and parse_bool_arg.
Referenced by add_task_commands().
|
static |
Definition at line 2935 of file gnu-nat.c.
References cur_inf(), inf::default_thread_run_sc, and parse_bool_arg.
Referenced by add_task_commands().
|
static |
Definition at line 3407 of file gnu-nat.c.
References cur_thread(), proc::detach_sc, and parse_int_arg().
Referenced by add_thread_commands().
|
static |
Definition at line 3426 of file gnu-nat.c.
References _, cur_thread(), error(), parse_and_eval_address(), and steal_exc_port().
Referenced by add_thread_commands().
|
static |
Definition at line 3362 of file gnu-nat.c.
References cur_thread(), proc::inf, inf_suspend(), parse_bool_arg, proc::pause_sc, and inf::pause_sc.
Referenced by add_thread_commands().
|
static |
Definition at line 3388 of file gnu-nat.c.
References cur_thread(), parse_bool_arg, and proc::run_sc.
Referenced by add_thread_commands().
|
static |
Definition at line 3112 of file gnu-nat.c.
References check_empty(), cur_inf(), printf_unfiltered(), inf::task, and inf::want_exceptions.
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 3051 of file gnu-nat.c.
References active_inf(), check_empty(), printf_unfiltered(), proc_string(), and inf::signal_thread.
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 3083 of file gnu-nat.c.
References check_empty(), cur_inf(), printf_unfiltered(), inf::task, inf::traced, and inf::want_signals.
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 3023 of file gnu-nat.c.
References active_inf(), check_empty(), printf_unfiltered(), and inf::stopped.
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 3132 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::default_thread_detach_sc, inf::detach_sc, inf::pause_sc, show_exceptions_cmd(), show_sig_thread_cmd(), show_signals_cmd(), show_stopped_cmd(), show_task_detach_sc_cmd(), show_task_pause_cmd(), show_thread_default_detach_sc_cmd(), show_thread_default_pause_cmd(), show_thread_default_run_cmd(), and inf::task.
Referenced by add_task_commands().
|
static |
Definition at line 2904 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::detach_sc, and printf_unfiltered().
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 2885 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::pause_sc, printf_unfiltered(), and inf::task.
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 2782 of file gnu-nat.c.
References printf_unfiltered().
Referenced by add_thread_commands().
|
static |
Definition at line 2796 of file gnu-nat.c.
References printf_unfiltered().
Referenced by add_thread_commands().
|
static |
Definition at line 2961 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::default_thread_detach_sc, and printf_unfiltered().
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 2923 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::default_thread_pause_sc, inf::pause_sc, and printf_unfiltered().
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 2944 of file gnu-nat.c.
References check_empty(), cur_inf(), inf::default_thread_run_sc, and printf_unfiltered().
Referenced by add_task_commands(), and show_task_cmd().
|
static |
Definition at line 3414 of file gnu-nat.c.
References check_empty(), cur_thread(), proc::detach_sc, printf_unfiltered(), and proc_string().
Referenced by add_thread_commands().
|
static |
Definition at line 3375 of file gnu-nat.c.
References check_empty(), cur_thread(), proc::inf, proc::pause_sc, inf::pause_sc, printf_unfiltered(), proc_string(), and proc::sc.
Referenced by add_thread_commands().
|
static |
Definition at line 3396 of file gnu-nat.c.
References check_empty(), cur_thread(), printf_unfiltered(), proc_string(), and proc::run_sc.
Referenced by add_thread_commands().
|
static |
Definition at line 2972 of file gnu-nat.c.
References _, err, error(), inf::event_port, proc::exc_port, proc::inf, name, proc::port, proc_set_exception_port(), proc_string(), safe_strerror(), proc::saved_exc_port, and inf::task.
Referenced by set_task_exc_port_cmd(), and set_thread_exc_port_cmd().
|
static |
Definition at line 3450 of file gnu-nat.c.
References cur_thread(), err, error(), proc::port, printf_unfiltered(), safe_strerror(), and proc::sc.
Referenced by add_thread_commands().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty mach_port_t kern_return_t boolean_t essential kern_return_t err |
Definition at line 1822 of file gnu-nat.c.
Referenced by _proc_get_exc_port(), arm_process_displaced_insn(), attach_command_continuation(), attach_proc_task_lwp_callback(), c_get_string(), check_for_thread_db(), compiled_regex::compiled_regex(), cp_comp_to_string(), display_selector(), do_all_inferior_continuations(), do_my_continuations(), do_my_continuations_1(), dos_baudconv(), error_symbol_once(), fetch_fpregs(), find_new_threads_callback(), find_new_threads_once(), get_exec_file(), gnu_find_memory_regions(), gnu_read_inferior(), gnu_wait(), gnu_write_inferior(), gnu_xfer_auxv(), inf_continue(), inf_set_pid(), inf_set_traced(), inf_signal(), inf_startup(), inf_validate_procinfo(), inf_validate_procs(), inf_validate_task_sc(), inferior_has_bug(), info_port_rights(), jit_read_code_entry(), jit_read_descriptor(), linux_ptrace_attach_fail_reason_string(), make_proc(), mem_bfd_iovec_pread(), memory_error(), memory_error_message(), mips_fetch_instruction(), net_open(), nto_parse_redirection(), gdb_xml_parser::parse(), perror_string(), pipe_windows_open(), print_sys_errmsg(), proc_get_state(), proc_restore_exc_port(), proc_steal_exc_port(), proc_update_sc(), procfs_create_inferior(), procfs_meminfo(), procfs_pidlist(), procfs_store_registers(), procfs_thread_alive(), procfs_xfer_partial(), python_interactive_command(), redir_open(), redir_set_redirection(), redirect_inferior_handles(), remote_enable_btrace(), steal_exc_port(), store_fpregs(), target_write_memory_blocks(), tfile_target_save(), thread_db_err_str(), thread_db_find_new_threads_2(), thread_db_get_thread_local_address(), thread_from_lwp(), thread_rec(), thread_takeover_sc_cmd(), thumb_process_displaced_16bit_insn(), thumb_process_displaced_32bit_insn(), try_open_exec_file(), try_thread_db_load_1(), typy_legacy_template_argument(), gdb_xml_parser::use_dtd(), val_print_string(), value_struct_elt(), and value_struct_elt_bitpos().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int flags |
Definition at line 1891 of file gnu-nat.c.
Referenced by ada_print_symbol_signature(), ada_print_type(), add_symbol_file_command(), apply_ext_lang_frame_filter(), backtrace_command_1(), bkpt_create_breakpoints_sal(), btrace_call_history(), btrace_insn_history(), btrace_print_lines(), c_print_type(), c_print_type_1(), c_print_type_no_offsets(), c_type_print_args(), c_type_print_base(), c_type_print_base_1(), c_type_print_base_struct_union(), c_type_print_template_args(), c_type_print_varspec_prefix(), c_type_print_varspec_suffix(), child_terminal_info(), cmd_record_call_history(), cmd_record_insn_history(), core_open(), cp_type_print_derivation_info(), cp_type_print_method_args(), create_breakpoint(), create_breakpoint_sal(), create_breakpoints_sal(), create_breakpoints_sal_default(), create_global_typedef_table(), d_int_type(), decode_line_1(), decode_line_full(), decode_line_with_current_source(), decode_line_with_last_displayed(), disassemble_command(), disassemble_current_function(), do_assembly_only(), do_free_global_table(), do_mixed_source_and_assembly(), do_mixed_source_and_assembly_deprecated(), dump_insns(), dump_subexp_body_standard(), dwarf_parse_macro_header(), evaluate_subexp_standard(), fake_method::fake_method(), find_global_typedef(), find_typedef_in_hash(), follow_type_instance_flags(), ftrace_connect_bfun(), ftrace_fixup_caller(), ftrace_update_caller(), gcore_create_callback(), gdb_disassembly(), gdb_filename_fnmatch(), gdb_glob::gdb_glob(), gdb_open_cloexec(), gdbpy_apply_frame_filter(), go_print_type(), inf_child_fileio_open(), info_mach_thread_command(), init_breakpoint_sal(), lex_one_token(), linespec_parser_new(), linespec_state_constructor(), linux_find_memory_regions_full(), linux_mntns_open_cloexec(), linux_nat_fileio_open(), m2_array(), m2_long_set(), m2_pointer(), m2_print_type(), m2_procedure(), m2_range(), m2_record_fields(), m2_ref(), m2_typedef(), m2_unbounded_array(), m68hc11_elf_make_msymbol_special(), maint_print_section_info(), make_vector_type(), mappingflags(), match_bfd_flags(), mi_apply_ext_lang_frame_filter(), mi_cmd_stack_list_args(), mi_cmd_stack_list_frames(), mi_cmd_stack_list_locals(), mi_cmd_stack_list_variables(), mi_memory_changed(), microblaze_analyze_prologue(), mnsh_handle_open(), my_waitpid(), objfile_find_memory_regions(), open_with_retry(), opencl_print_type(), output_access_specifier(), pascal_print_func_args(), pascal_print_type(), pascal_type_print_base(), pascal_type_print_func_varspec_suffix(), pascal_type_print_varspec_prefix(), pascal_type_print_varspec_suffix(), pdc_read_regs(), pdc_write_regs(), gdb_pretty_print_disassembler::pretty_print_insn(), print_array_type(), print_bfd_flags(), print_bfd_section_info(), print_disassembly(), print_fpu_flags(), print_func_type(), print_name_maybe_canonical(), print_objfile_section_info(), print_record_field_types(), print_record_type(), print_selected_record_field_types(), print_source_lines(), print_source_lines_base(), print_spaces_filtered_with_print_options(), print_subexp_standard(), print_unchecked_union_type(), print_variant_clauses(), print_variant_part(), proc_prettyfprint_flags(), proc_prettyfprint_status(), proc_prettyprint_flags(), procfs_create_inferior(), procfs_meminfo(), procfs_wait(), py_print_frame(), record_btrace_call_history(), record_btrace_call_history_from(), record_btrace_call_history_range(), record_btrace_cancel_resume(), record_btrace_insn_history(), record_btrace_insn_history_from(), record_btrace_insn_history_range(), record_btrace_step_thread(), remote_fileio_func_open(), remote_fileio_oflags_to_host(), remote_hostio_open(), rust_print_struct_def(), rust_print_type(), skiplist_entry::skiplist_entry(), solib_read_symbols(), strace_marker_create_breakpoints_sal(), symbol_file_add(), symbol_file_add_from_bfd(), symbol_file_add_main_1(), symbol_file_add_with_addrs(), symbol_file_command(), target_call_history(), target_call_history_from(), target_call_history_range(), target_fileio_open(), target_fileio_open_1(), target_fileio_open_warn_if_slow(), target_insn_history(), target_insn_history_from(), target_insn_history_range(), tfile_open(), tracepoint_create_breakpoints_sal(), try_open_dwop_file(), update_thread_private_data(), validate_readnow_readnever(), whatis_exp(), windows_create_inferior(), windows_set_console_info(), xtensa_pseudo_register_read(), and xtensa_pseudo_register_write().
| struct inf* gnu_current_inf = 0 |
Definition at line 1451 of file gnu-nat.c.
Referenced by cur_inf(), gnu_detach(), gnu_fetch_registers(), gnu_find_memory_regions(), gnu_kill_inferior(), gnu_mourn_inferior(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), gnu_xfer_auxv(), gnu_xfer_memory(), and inf_pick_first_thread().
| int gnu_debug_flag = 0 |
Definition at line 93 of file gnu-nat.c.
Referenced by _initialize_gnu_nat().
|
static |
Definition at line 544 of file gnu-nat.c.
Referenced by inf_pick_first_thread(), and inf_validate_procs().
| mach_port_t mach_port_t name mach_port_t notify |
Definition at line 1811 of file gnu-nat.c.
Referenced by generic_observer_attach().
Definition at line 1824 of file gnu-nat.c.
Referenced by aarch64_add_process(), aarch64_fbsd_fetch_inferior_registers(), aarch64_fbsd_store_inferior_registers(), aarch64_find_process_pid(), aarch64_forget_process(), aarch64_get_debug_reg_state(), aarch64_process_info_get(), add_displaced_stepping_state(), add_fork(), add_inferior(), add_inferior_silent(), add_to_pid_list(), add_to_thread_list(), adi_available(), adi_examine_command(), adi_is_addr_mapped(), adi_tag_fd(), agent_run_command(), amd64bsd_fetch_inferior_registers(), amd64bsd_store_inferior_registers(), any_live_thread_of_process(), any_thread_of_process(), arm_fbsd_fetch_inferior_registers(), arm_fbsd_store_inferior_registers(), arm_linux_add_process(), arm_linux_find_process_pid(), arm_linux_forget_process(), arm_linux_get_debug_reg_state(), arm_linux_insert_hw_breakpoint1(), arm_linux_prepare_to_resume(), arm_linux_process_info_get(), arm_linux_read_description(), arm_linux_remove_hw_breakpoint1(), attach_post_wait(), BP_MANIPULATION(), bsd_uthread_update_thread_list(), clear_inline_frame_state(), command_from_pid(), commandline_from_pid(), core_close(), core_pid_to_str(), create_procinfo(), darwin_attach(), darwin_decode_message(), darwin_detach(), darwin_find_inferior_by_pid(), darwin_pid_to_exec_file(), darwin_ptrace(), darwin_ptrace_him(), darwin_resume(), delete_thread_db_info(), detach_inferior(), detach_inferior_command(), displaced_step_in_progress(), do_initial_windows_stuff(), exec_continue(), exec_file_locate_attach(), exit_inferior(), exit_inferior_silent(), extended_remote_attach(), fbsd_find_memory_regions(), fbsd_pid_to_exec_file(), fetch_register(), find_fork_pid(), find_inferior_object(), find_inferior_pid(), find_procinfo(), find_procinfo_or_die(), find_thread_object(), find_thread_of_process(), first_thread_of_process(), follow_exec(), fork_inferior(), gdb_connect_sync_socket(), gdb_startup_inferior(), gdbpy_create_ptid_object(), generic_mourn_inferior(), get_adi_info(), get_adi_info_proc(), get_cores_used_by_process(), get_displaced_stepping_state(), get_process_owner(), get_ptrace_pid(), get_sim_inferior_data_by_ptid(), get_thread_db_info(), gnu_attach(), gnu_create_inferior(), gnu_detach(), hppanbsd_fetch_registers(), hppanbsd_store_registers(), hppaobsd_fetch_registers(), hppaobsd_store_registers(), i386_linux_resume(), i386bsd_fetch_inferior_registers(), i386bsd_store_inferior_registers(), i386fbsd_resume(), ia64_linux_fetch_register(), ia64_linux_store_register(), in_inferior_list(), inf_attach(), inf_ptrace_attach(), inf_ptrace_create_inferior(), inf_ptrace_detach(), inf_ptrace_detach_success(), inf_ptrace_fetch_register(), inf_ptrace_kill(), inf_ptrace_peek_poke(), inf_ptrace_resume(), inf_ptrace_store_register(), inf_ptrace_wait(), inf_ptrace_xfer_partial(), inf_set_pid(), inf_startup(), inferior_appeared(), inferior_call_waitpid(), inferior_pid_to_str(), info_auto_load_libthread_db(), interrupt_thread_callback(), is_pending_fork_parent_thread(), kill_inferior_command(), kill_new_fork_children(), kill_one_lwp(), kill_wait_one_lwp(), linux_child_pid_to_exec_file(), linux_child_post_attach(), linux_disable_event_reporting(), linux_enable_event_reporting(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_fork_checkpointing_p(), linux_fork_killall(), linux_handle_extended_wait(), linux_info_proc(), linux_init_ptrace(), linux_mntns_access_fs(), linux_mntns_open_cloexec(), linux_mntns_readlink(), linux_mntns_unlink(), linux_nat_attach(), linux_nat_detach(), linux_nat_forget_process(), linux_nat_get_siginfo(), linux_nat_has_pending_sigint(), linux_nat_mourn_inferior(), linux_nat_post_attach_wait(), linux_nat_thread_address_space(), linux_ns_filename(), linux_ns_same(), linux_proc_attach_tgid_threads(), linux_proc_pending_signals(), linux_proc_pid_get_state(), linux_proc_pid_has_state(), linux_proc_pid_is_gone(), linux_proc_pid_is_stopped(), linux_proc_pid_is_trace_stopped_nowarn(), linux_proc_pid_is_zombie(), linux_proc_pid_is_zombie_maybe_warn(), linux_proc_pid_is_zombie_nowarn(), linux_proc_pid_to_exec_file(), linux_proc_task_list_dir_exists(), linux_proc_tid_get_name(), linux_proc_xfer_spu(), linux_ptrace_attach_fail_reason(), linux_vsyscall_range_raw(), linux_xfer_osdata_fds(), linux_xfer_osdata_processes(), linux_xfer_osdata_processgroups(), linux_xfer_osdata_threads(), linux_xfer_siginfo(), list_available_thread_groups(), lwp_info_hash(), lwp_lwpid_htab_remove_pid(), m68kbsd_fetch_inferior_registers(), m68kbsd_store_inferior_registers(), mi_cmd_target_detach(), mips64obsd_fetch_inferior_registers(), mips64obsd_store_inferior_registers(), mips_fbsd_fetch_inferior_registers(), mips_fbsd_store_inferior_registers(), mipsnbsd_fetch_inferior_registers(), mipsnbsd_store_inferior_registers(), mnsh_maybe_mourn_peer(), my_waitpid(), nbsd_pid_to_exec_file(), num_lwps(), parse_pid_to_attach(), pid_to_gdb_inferior_id(), pid_to_ptid(), pipe_open(), postfork_hook(), ppcfbsd_fetch_inferior_registers(), ppcfbsd_store_inferior_registers(), ppcnbsd_fetch_inferior_registers(), ppcnbsd_store_inferior_registers(), ppcobsd_fetch_registers(), ppcobsd_store_registers(), print_thread_info(), print_thread_info_1(), proceed_after_attach(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), procfs_attach(), procfs_create_inferior(), procfs_detach(), procfs_fetch_registers(), procfs_info_proc(), procfs_init_inferior(), procfs_pid_to_exec_file(), procfs_pid_to_str(), procfs_pidlist(), procfs_store_registers(), procfs_thread_alive(), procfs_update_thread_list(), ptid_build(), pull_pid_from_list(), purge_lwp_list(), read_ptid(), remote_add_inferior(), remote_detach_1(), remote_detach_pid(), remote_kill(), remote_newthread_step(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_pid_to_exec_file(), remote_query_attached(), remote_set_syscall_catchpoint(), remote_vkill(), remove_breakpoints_pid(), remove_displaced_stepping_state(), remove_new_fork_children(), rs6000_ptrace_ldinfo(), rs6000_wait(), rs6000_xfer_partial(), s390_add_process(), s390_find_process_pid(), s390_forget_process(), s390_get_debug_reg_state(), s390_prepare_to_resume(), s390_process_info_get(), shell_escape(), shnbsd_fetch_inferior_registers(), shnbsd_store_inferior_registers(), should_print_thread(), sol2_core_pid_to_str(), sol_thread_alive(), sparc64_forget_process(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), sparc_xfer_wcookie(), spu_child_post_attach(), spu_child_wait(), spu_enumerate_spu_ids(), spu_proc_xfer_spu(), startup_inferior(), store_register(), target_announce_detach(), tfile_close(), try_thread_db_load_1(), vaxbsd_fetch_inferior_registers(), vaxbsd_store_inferior_registers(), VEC(), wait_lwp(), wait_to_die_with_timeout(), windows_attach(), windows_fetch_inferior_registers(), windows_pid_to_exec_file(), windows_store_inferior_registers(), windows_wait(), write_ptid(), x86_add_process(), x86_debug_reg_state(), x86_find_process_pid(), x86_forget_process(), x86_linux_get_thread_area(), and x86_process_info_get().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t pids |
Definition at line 1903 of file gnu-nat.c.
Referenced by info_auto_load_libthread_db().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t pidset |
|
static |
Definition at line 84 of file gnu-nat.c.
Referenced by _initialize_gnu_nat(), gnu_wait(), gnu_xfer_auxv(), inf_continue(), inf_set_pid(), inf_validate_procinfo(), and inf_validate_task_sc().
| int proc_wait_pid = 0 |
Definition at line 88 of file gnu-nat.c.
Referenced by do_mach_notify_dead_name(), and gnu_wait().
| int proc_waits_pending = 0 |
Definition at line 91 of file gnu-nat.c.
Referenced by gnu_wait().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t procenv |
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t procinfoCnt |
| struct obstack region_obstack |
Definition at line 2345 of file gnu-nat.c.
Referenced by gnu_write_inferior().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty mach_port_t reply_port |
Definition at line 1878 of file gnu-nat.c.
Referenced by S_exception_raise_request().
| return |
Definition at line 1871 of file gnu-nat.c.
Referenced by gdb.command.pretty_printers::parse_printer_regexps().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t mach_msg_type_number_t threadwaitsCnt mach_port_t kern_return_t data_t mach_msg_type_number_t procenvCnt mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsCnt mach_port_t kern_return_t pid_t sid mach_port_t kern_return_t pidarray_t mach_msg_type_number_t pidsetCnt mach_port_t kern_return_t pid_t pgrp mach_port_t kern_return_t mach_port_t tty mach_port_t kern_return_t return_code |
Definition at line 1822 of file gnu-nat.c.
Referenced by run_time_clock::now().
|
static |
Definition at line 2761 of file gnu-nat.c.
Referenced by add_task_commands().
| struct cmd_list_element* set_thread_cmd_list = NULL |
Definition at line 2767 of file gnu-nat.c.
Referenced by add_thread_commands().
| struct cmd_list_element* set_thread_default_cmd_list = NULL |
Definition at line 2771 of file gnu-nat.c.
Referenced by add_task_commands(), and add_thread_commands().
|
static |
Definition at line 2762 of file gnu-nat.c.
Referenced by add_task_commands().
| struct cmd_list_element* show_thread_cmd_list = NULL |
Definition at line 2768 of file gnu-nat.c.
Referenced by add_thread_commands().
| struct cmd_list_element* show_thread_default_cmd_list = NULL |
Definition at line 2772 of file gnu-nat.c.
Referenced by add_task_commands(), and add_thread_commands().
Definition at line 1822 of file gnu-nat.c.
Referenced by aarch64_pseudo_read_value(), add_to_pid_list(), aix_thread_extra_thread_info(), aix_thread_wait(), amd64_pseudo_register_read_value(), apply_ext_lang_frame_filter(), arm_get_next_pcs_raw(), arm_neon_quad_read(), arm_print_float_info(), arm_pseudo_read(), avr_pseudo_register_read(), bfin_pseudo_register_read(), BP_MANIPULATION(), bsd_uthread_wait(), btrace_step_again(), btrace_step_no_history(), btrace_step_no_resumed(), btrace_step_spurious(), btrace_step_stopped(), btrace_step_stopped_on_request(), check_trace_running(), cleanup_block_load_all(), cleanup_block_load_pc(), cleanup_block_store_pc(), cleanup_branch(), regcache::cooked_read(), cris_software_single_step(), darwin_attach_pid(), darwin_debug_port_info(), darwin_decode_message(), darwin_kill_inferior(), darwin_resume(), darwin_stop_inferior(), darwin_wait(), darwin_wait_to(), dcache_update(), default_target_wait(), detach_one_lwp(), dfp_pseudo_register_read(), displaced_step_prepare_throw(), do_attach(), do_initial_windows_stuff(), do_ser_base_readchar(), do_target_wait(), regcache::dump(), dump_binary_file(), e500_move_ev_register(), enable_break2(), fetch_regs_user_thread(), find_extant_func_descr(), frv_pseudo_register_read(), frv_relocate_main_executable(), gdb_xml_fetch_external_entity(), gdbscm_disasm_read_memory(), gdbscm_parse_function_args(), gdbscm_print_exception_message(), gdbscm_print_exception_with_stack(), gdbsim_wait(), get_last_target_status(), gnu_wait(), go32_wait(), hppa_linux_find_global_pointer(), hppa_pseudo_register_read(), hppa_stack_frame_destroyed_p(), i386_pseudo_register_read_into_value(), ia64_find_global_pointer_from_dynamic_section(), ia64_linux_status_is_event(), ia64_pseudo_register_read(), if(), inf_ptrace_kill(), inf_ptrace_mourn_inferior(), inf_ptrace_wait(), is_regular_file(), jit_frame_prev_register(), jit_reader_try_read_symtab(), linux_check_ptrace_features(), linux_child_follow_fork(), linux_fork_killall(), linux_fork_mourn_inferior(), linux_handle_extended_wait(), linux_info_proc(), linux_nat_attach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_wait_1(), linux_ptrace_test_ret_to_nx(), linux_test_for_tracefork(), linux_xfer_osdata_modules(), m32c_cat_read(), m32c_r3r2r1r0_read(), m68hc11_pseudo_register_read(), mep_pseudo_cr32_read(), micromips_insn_at_pc_has_delay_slot(), mips16_insn_at_pc_has_delay_slot(), mips32_insn_at_pc_has_delay_slot(), mips_breakpoint_kind_from_pc(), mips_get_mips16_fn_stub_pc(), mips_pseudo_register_read(), mn10300_analyze_prologue(), mnsh_maybe_mourn_peer(), msp430_get_opcode_byte(), msp430_pseudo_register_read(), mt_pseudo_register_read(), my_waitpid(), nds32_pseudo_register_read(), open_with_retry(), gdb_xml_parser::parse(), pd_activate(), pd_enable(), pd_status2str(), pd_update(), pdc_read_data(), pdc_write_data(), pipe_close(), print_i387_status_word(), process_stop_reply(), procfs_debug_inferior(), procfs_pidlist(), procfs_resume(), procfs_thread_alive(), procfs_update_thread_list(), procfs_wait(), pseudo_from_raw_register(), pseudo_register_read_portions(), ravenscar_wait(), regcache::raw_read(), read_memory_object(), read_value_memory(), record_btrace_step_thread(), record_btrace_wait(), record_full_wait(), record_full_wait_1(), regcache_raw_get_signed(), regcache_raw_get_unsigned(), remote_can_download_tracepoint(), remote_wait(), remote_wait_as(), remote_wait_ns(), rl78_get_opcode_byte(), rl78_pseudo_register_read(), rs6000_wait(), rx_get_opcode_byte(), s390_pseudo_register_read(), regcache::save(), section_table_read_available_memory(), select_event_lwp(), ser_windows_wait_handle(), set_last_target_status(), set_value_initialized(), sh64_pseudo_register_read(), sh_pseudo_register_read(), shell_escape(), sigtrap_is_event(), simple_verify_memory(), skip_prologue_hard_way(), sparc32_pseudo_register_read(), sparc64_pseudo_register_read(), spu_child_wait(), spu_frame_unwind_cache(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), spu_symbol_file_add_from_memory(), status_to_str(), stop_wait_callback(), store_regs_user_thread(), sync_threadlists(), target_debug_print_struct_target_waitstatus_p(), target_read(), target_read_alloc_1(), target_stop_and_wait(), target_wait(), target_write_with_progress(), target_xfer_status_to_string(), thumb_deal_with_atomic_sequence_raw(), thumb_get_next_pcs_raw(), tilegx_analyze_prologue(), trace_status_mi(), tstatus_command(), tui_adjust_win_heights(), tui_set_layout(), tui_set_layout_by_name(), unconditionally_kill_inferior(), vsx_pseudo_register_read(), wait_lwp(), wait_to_die_with_timeout(), windows_continue(), write_memory(), x86_dr_stopped_data_address(), regcache::xfer_part(), xstrvprintf(), xtensa_pseudo_register_read(), and xtensa_register_read_masked().
| else inf wait suppress = 1 |
Definition at line 1869 of file gnu-nat.c.
Referenced by completion_tracker::set_suppress_append_ws().
| struct cmd_list_element* thread_cmd_list |
Definition at line 2049 of file thread.c.
Referenced by _initialize_thread(), and add_thread_commands().
| mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int procinfo_t mach_msg_type_number_t data_t threadwaits |
| struct inf* waiting_inf |
Definition at line 1455 of file gnu-nat.c.
Referenced by do_mach_notify_dead_name(), gnu_wait(), and S_exception_raise_request().
1.8.14