GDB (xrefs)

Classes | Macros | Typedefs | Functions | Variables
/tmp/gdb-8.1/gdb/linux-nat.h File Reference
`#include "nat/linux-nat.h"`
`#include "target.h"`
`#include <signal.h>`

Go to the source code of this file.

## Classes
struct | lwp_info

## Macros
#define | ALL_LWPS(LP)

## Typedefs
typedef void() | linux_nat_new_fork_ftype(struct lwp_info *parent, pid_t child_pid)
typedef void() | linux_nat_forget_process_ftype(pid_t pid)

## Functions
void | check_for_thread_db (void)
int | thread_db_notice_clone (ptid_t parent, ptid_t child)
void | lin_thread_get_thread_signals (sigset_t *mask)
void | linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored)
void | linux_stop_and_wait_all_lwps (void)
void | linux_unstop_all_lwps (void)
struct target_ops * | linux_target (void)
struct target_ops * | linux_trad_target (CORE_ADDR(*register_u_offset)(struct gdbarch *, int, int))
void | linux_nat_add_target (struct target_ops *)
void | linux_nat_set_new_thread (struct target_ops *, void(*)(struct lwp_info *))
void | linux_nat_set_delete_thread (struct target_ops *, void(*)(struct arch_lwp_info *))
void | linux_nat_set_new_fork (struct target_ops *ops, linux_nat_new_fork_ftype *fn)
void | linux_nat_set_forget_process (struct target_ops *ops, linux_nat_forget_process_ftype *fn)
void | linux_nat_forget_process (pid_t pid)
void | linux_nat_set_siginfo_fixup (struct target_ops *, int(*)(siginfo_t *, gdb_byte *, int))
void | linux_nat_set_prepare_to_resume (struct target_ops *, void(*)(struct lwp_info *))
void | linux_nat_switch_fork (ptid_t new_ptid)
int | linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo)
void | linux_nat_set_status_is_event (struct target_ops *t, int(*status_is_event)(int status))

## Variables
struct lwp_info * | lwp_list
enum tribool | have_ptrace_getregset

## Macro Definition Documentation

## ◆ ALL_LWPS

#define ALL_LWPS | ( |  | LP | ) |

Value:
for ((LP) = lwp_list; \
(LP) != NULL; \
(LP) = (LP)->next)
lwp_info::next
struct lwp_info * next
Definition: linux-nat.h:107
lwp_list
struct lwp_info * lwp_list
Definition: linux-nat.c:745

Definition at line 119 of file linux-nat.h.

Referenced by ia64_linux_insert_watchpoint(), ia64_linux_remove_watchpoint(), linux_nat_update_thread_list(), ppc_linux_insert_hw_breakpoint(), ppc_linux_insert_mask_watchpoint(), ppc_linux_insert_watchpoint(), ppc_linux_remove_hw_breakpoint(), ppc_linux_remove_mask_watchpoint(), ppc_linux_remove_watchpoint(), try_thread_db_load_1(), and write_watchpoint_regs().

## Typedef Documentation

## ◆ linux_nat_forget_process_ftype

typedef void() linux_nat_forget_process_ftype(pid_t pid)

Definition at line 180 of file linux-nat.h.

## ◆ linux_nat_new_fork_ftype

typedef void() linux_nat_new_fork_ftype(struct lwp_info *parent, pid_t child_pid)

Definition at line 173 of file linux-nat.h.

## Function Documentation

## ◆ check_for_thread_db()

void check_for_thread_db | ( | void |  | ) |

Definition at line 978 of file linux-thread-db.c.

References thread_db_load().

Referenced by linux_child_follow_fork(), thread_db_inferior_created(), and thread_db_new_objfile().

## ◆ lin_thread_get_thread_signals()

void lin_thread_get_thread_signals | ( | sigset_t * | mask | ) |

Definition at line 5024 of file linux-nat.c.

References __SIGRTMIN.

Referenced by check_thread_signals().

## ◆ linux_nat_add_target()

void linux_nat_add_target | ( | struct target_ops * |  | ) |

Definition at line 4804 of file linux-nat.c.

References add_target(), linux_nat_always_non_stop_p(), linux_nat_async(), linux_nat_attach(), linux_nat_can_async_p(), linux_nat_close(), linux_nat_core_of_thread(), linux_nat_create_inferior(), linux_nat_detach(), linux_nat_fileio_open(), linux_nat_fileio_readlink(), linux_nat_fileio_unlink(), linux_nat_filesystem_is_local(), linux_nat_is_async_p(), linux_nat_kill(), linux_nat_mourn_inferior(), linux_nat_pass_signals(), linux_nat_pid_to_str(), linux_nat_resume(), linux_nat_stop(), linux_nat_stopped_by_hw_breakpoint(), linux_nat_stopped_by_sw_breakpoint(), linux_nat_stopped_by_watchpoint(), linux_nat_stopped_data_address(), linux_nat_supports_disable_randomization(), linux_nat_supports_multi_process(), linux_nat_supports_non_stop(), linux_nat_supports_stopped_by_hw_breakpoint(), linux_nat_supports_stopped_by_sw_breakpoint(), linux_nat_terminal_inferior(), linux_nat_terminal_ours(), linux_nat_thread_address_space(), linux_nat_thread_alive(), linux_nat_thread_events(), linux_nat_thread_name(), linux_nat_update_thread_list(), linux_nat_wait(), linux_nat_xfer_partial(), linux_ops, linux_ops_saved, super_close, tc_schedlock, target_ops::to_always_non_stop_p, target_ops::to_async, target_ops::to_attach, target_ops::to_can_async_p, target_ops::to_close, target_ops::to_core_of_thread, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_fileio_open, target_ops::to_fileio_readlink, target_ops::to_fileio_unlink, target_ops::to_filesystem_is_local, target_ops::to_has_thread_control, target_ops::to_is_async_p, target_ops::to_kill, target_ops::to_mourn_inferior, target_ops::to_pass_signals, target_ops::to_pid_to_str, target_ops::to_resume, target_ops::to_stop, target_ops::to_stopped_by_hw_breakpoint, target_ops::to_stopped_by_sw_breakpoint, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_supports_disable_randomization, target_ops::to_supports_multi_process, target_ops::to_supports_non_stop, target_ops::to_supports_stopped_by_hw_breakpoint, target_ops::to_supports_stopped_by_sw_breakpoint, target_ops::to_terminal_inferior, target_ops::to_terminal_ours, target_ops::to_thread_address_space, target_ops::to_thread_alive, target_ops::to_thread_events, target_ops::to_thread_name, target_ops::to_update_thread_list, target_ops::to_wait, and target_ops::to_xfer_partial.

Referenced by _initialize_aarch64_linux_nat(), _initialize_alpha_linux_nat(), _initialize_arm_linux_nat(), _initialize_hppa_linux_nat(), _initialize_ia64_linux_nat(), _initialize_m32r_linux_nat(), _initialize_m68k_linux_nat(), _initialize_mips_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), _initialize_sparc_linux_nat(), _initialize_tile_linux_nat(), _initialize_xtensa_linux_nat(), and x86_linux_add_target().

## ◆ linux_nat_forget_process()

void linux_nat_forget_process | ( | pid_t | pid | ) |

Definition at line 4916 of file linux-nat.c.

References linux_nat_forget_process_hook, and pid.

Referenced by delete_fork(), kill_unfollowed_fork_children(), and linux_nat_mourn_inferior().

## ◆ linux_nat_get_siginfo()

int linux_nat_get_siginfo | ( | ptid_t | ptid,
|  | siginfo_t * | siginfo
| ) |  |

Definition at line 4948 of file linux-nat.c.

References memset(), pid, ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_GETSIGINFO, and PTRACE_TYPE_ARG3.

Referenced by aarch64_linux_stopped_data_address(), arm_linux_stopped_data_address(), ia64_linux_stopped_data_address(), ppc_linux_stopped_data_address(), and save_stop_reason().

## ◆ linux_nat_set_delete_thread()

void linux_nat_set_delete_thread | ( | struct target_ops * | ,
|  | void(*)(struct arch_lwp_info *) |
| ) |  |

Definition at line 4884 of file linux-nat.c.

References delete_thread(), and linux_nat_delete_thread.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_forget_process()

void linux_nat_set_forget_process | ( | struct target_ops * | ops,
|  | linux_nat_forget_process_ftype * | fn
| ) |  |

Definition at line 4906 of file linux-nat.c.

References linux_nat_forget_process_hook.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_new_fork()

void linux_nat_set_new_fork | ( | struct target_ops * | ops,
|  | linux_nat_new_fork_ftype * | fn
| ) |  |

Definition at line 4896 of file linux-nat.c.

References linux_nat_new_fork.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_new_thread()

void linux_nat_set_new_thread | ( | struct target_ops * | ,
|  | void(*)(struct lwp_info *) |
| ) |  |

Definition at line 4873 of file linux-nat.c.

References linux_nat_new_thread, and new_thread().

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_ia64_linux_nat(), _initialize_mips_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_prepare_to_resume()

void linux_nat_set_prepare_to_resume | ( | struct target_ops * | ,
|  | void(*)(struct lwp_info *) |
| ) |  |

Definition at line 4938 of file linux-nat.c.

References linux_nat_prepare_to_resume.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_siginfo_fixup()

void linux_nat_set_siginfo_fixup | ( | struct target_ops * | ,
|  | int(*)(siginfo_t *, gdb_byte *, int) |
| ) |  |

Definition at line 4926 of file linux-nat.c.

References linux_nat_siginfo_fixup, and siginfo_fixup().

Referenced by _initialize_aarch64_linux_nat(), and _initialize_amd64_linux_nat().

## ◆ linux_nat_set_status_is_event()

void linux_nat_set_status_is_event | ( | struct target_ops * | t,
|  | int(*)(int status) | status_is_event
| ) |  |

Definition at line 2527 of file linux-nat.c.

References linux_nat_status_is_event.

Referenced by _initialize_ia64_linux_nat().

## ◆ linux_nat_switch_fork()

void linux_nat_switch_fork | ( | ptid_t | new_ptid | ) |

Definition at line 1016 of file linux-nat.c.

References add_lwp(), inferior_ptid, ptid_get_pid(), purge_lwp_list(), registers_changed(), lwp_info::stopped, and thread_change_ptid().

Referenced by fork_load_infrun_state().

## ◆ linux_proc_pending_signals()

void linux_proc_pending_signals | ( | int | pid,
|  | sigset_t * | pending,
|  | sigset_t * | blocked,
|  | sigset_t * | ignored
| ) |  |

Definition at line 4191 of file linux-nat.c.

References _, add_line_to_sigset(), error(), gdb_fopen_cloexec(), pid, startswith(), and xsnprintf().

Referenced by linux_nat_has_pending_sigint().

## ◆ linux_stop_and_wait_all_lwps()

void linux_stop_and_wait_all_lwps | ( | void |  | ) |

Definition at line 2378 of file linux-nat.c.

References iterate_over_lwps(), minus_one_ptid, stop_callback(), and stop_wait_callback().

Referenced by try_thread_db_load_1().

## ◆ linux_target()

struct target_ops* linux_target | ( | void |  | ) |

Definition at line 4377 of file linux-nat.c.

References inf_ptrace_target(), and linux_target_install_ops().

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_hppa_linux_nat(), _initialize_ia64_linux_nat(), _initialize_m32r_linux_nat(), _initialize_m68k_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), _initialize_sparc_linux_nat(), _initialize_tile_linux_nat(), _initialize_xtensa_linux_nat(), and x86_linux_create_target().

## ◆ linux_trad_target()

struct target_ops* linux_trad_target | ( | CORE_ADDR(*)(struct gdbarch *, int, int) | register_u_offset | ) |

Definition at line 4388 of file linux-nat.c.

References inf_ptrace_trad_target(), and linux_target_install_ops().

Referenced by _initialize_alpha_linux_nat(), and _initialize_mips_linux_nat().

## ◆ linux_unstop_all_lwps()

void linux_unstop_all_lwps | ( | void |  | ) |

Definition at line 2391 of file linux-nat.c.

References iterate_over_lwps(), minus_one_ptid, and resume_stopped_resumed_lwps().

Referenced by try_thread_db_load_1().

## ◆ thread_db_notice_clone()

int thread_db_notice_clone | ( | ptid_t | parent,
|  | ptid_t | child
| ) |  |

Definition at line 379 of file linux-thread-db.c.

References get_thread_db_info(), ptid_get_pid(), and thread_from_lwp().

Referenced by linux_handle_extended_wait().

## Variable Documentation

## ◆ have_ptrace_getregset

enum tribool have_ptrace_getregset

Definition at line 190 of file linux-nat.c.

Referenced by amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), arm_linux_read_description(), fetch_fpregs(), fetch_regs(), fetch_vfp_regs(), fetch_xstateregs(), store_fpregs(), store_regs(), store_vfp_regs(), store_xstateregs(), and x86_linux_read_description().

## ◆ lwp_list

struct lwp_info* lwp_list

Definition at line 745 of file linux-nat.c.

Referenced by iterate_over_lwps(), lwp_list_add(), lwp_list_remove(), and num_lwps().