GDBserver
Classes | Macros | Functions | Variables
linux-low.h File Reference
#include "nat/linux-nat.h"
#include "nat/gdb_thread_db.h"
#include <signal.h>
#include "gdbthread.h"
#include "gdb_proc_service.h"
#include "nat/linux-ptrace.h"
#include "target/waitstatus.h"
#include "tracepoint.h"

Go to the source code of this file.

Classes

struct  usrregs_info
 
struct  regs_info
 
struct  process_info_private
 
struct  linux_target_ops
 
struct  lwp_info
 

Macros

#define PTRACE_XFER_TYPE   long
 
#define get_thread_lwp(thr)   ((struct lwp_info *) (thread_target_data (thr)))
 
#define get_lwp_thread(lwp)   ((lwp)->thread)
 

Functions

int linux_pid_exe_is_elf_64_file (int pid, unsigned int *machine)
 
int linux_attach_lwp (ptid_t ptid)
 
struct lwp_infofind_lwp_pid (ptid_t ptid)
 
void initialize_low_arch (void)
 
void linux_set_pc_32bit (struct regcache *regcache, CORE_ADDR pc)
 
CORE_ADDR linux_get_pc_32bit (struct regcache *regcache)
 
void linux_set_pc_64bit (struct regcache *regcache, CORE_ADDR pc)
 
CORE_ADDR linux_get_pc_64bit (struct regcache *regcache)
 
int thread_db_init (void)
 
void thread_db_detach (struct process_info *)
 
void thread_db_mourn (struct process_info *)
 
int thread_db_handle_monitor_command (char *)
 
int thread_db_get_tls_address (struct thread_info *thread, CORE_ADDR offset, CORE_ADDR load_module, CORE_ADDR *address)
 
int thread_db_look_up_one_symbol (const char *name, CORE_ADDR *addrp)
 
void thread_db_notice_clone (struct thread_info *parent_thr, ptid_t child_ptid)
 
bool thread_db_thread_handle (ptid_t ptid, gdb_byte **handle, int *handle_len)
 

Variables

struct linux_target_ops the_low_target
 
int have_ptrace_getregset
 

Macro Definition Documentation

◆ get_lwp_thread

#define get_lwp_thread (   lwp)    ((lwp)->thread)

◆ get_thread_lwp

#define get_thread_lwp (   thr)    ((struct lwp_info *) (thread_target_data (thr)))

◆ PTRACE_XFER_TYPE

#define PTRACE_XFER_TYPE   long

Definition at line 31 of file linux-low.h.

Referenced by linux_read_memory(), and linux_write_memory().

Function Documentation

◆ find_lwp_pid()

struct lwp_info* find_lwp_pid ( ptid_t  ptid)

◆ initialize_low_arch()

void initialize_low_arch ( void  )

Definition at line 2996 of file linux-aarch64-low.c.

References aarch64_regsets_info, allocate_target_description(), arm_regsets_info, copy_target_description(), cris_regsets_info, i386_linux_read_description(), init_registers_arm(), init_registers_arm_with_iwmmxt(), init_registers_arm_with_vfpv2(), init_registers_arm_with_vfpv3(), init_registers_bfin(), init_registers_cris(), init_registers_crisv32(), init_registers_ia64(), init_registers_m32r(), init_registers_m68k(), init_registers_mips64_dsp_linux(), init_registers_mips64_linux(), init_registers_mips_dsp_linux(), init_registers_mips_linux(), init_registers_nios2_linux(), init_registers_powerpc_32l(), init_registers_powerpc_altivec32l(), init_registers_powerpc_cell32l(), init_registers_powerpc_e500l(), init_registers_powerpc_isa205_32l(), init_registers_powerpc_isa205_altivec32l(), init_registers_powerpc_isa205_vsx32l(), init_registers_powerpc_vsx32l(), init_registers_s390_gs_linux64(), init_registers_s390_linux32(), init_registers_s390_linux32v1(), init_registers_s390_linux32v2(), init_registers_s390_linux64(), init_registers_s390_linux64v1(), init_registers_s390_linux64v2(), init_registers_s390_te_linux64(), init_registers_s390_tevx_linux64(), init_registers_s390_vx_linux64(), init_registers_sh(), init_registers_sparc64(), init_registers_tic6x_c62x_linux(), init_registers_tic6x_c64x_linux(), init_registers_tic6x_c64xp_linux(), init_registers_tilegx(), init_registers_tilegx32(), init_registers_xtensa(), initialize_low_arch_aarch32(), initialize_low_tdesc(), m68k_regsets_info, mips_regsets_info, nios2_regsets_info, ppc_regsets_info, selftests::register_test(), s390_regsets_info, s390_regsets_info_3264, sh_regsets_info, sparc_regsets_info, tdesc_i386_linux_no_xml, tic6x_regsets_info, tile_regsets_info, x86_regsets_info, X86_XSTATE_SSE_MASK, target_desc::xmltarget, xmltarget_i386_linux_no_xml, and xtensa_regsets_info.

Referenced by initialize_low().

◆ linux_attach_lwp()

int linux_attach_lwp ( ptid_t  ptid)

◆ linux_get_pc_32bit()

CORE_ADDR linux_get_pc_32bit ( struct regcache regcache)

Definition at line 7411 of file linux-low.c.

References collect_register_by_name(), debug_printf(), and debug_threads.

Referenced by aarch64_get_pc().

◆ linux_get_pc_64bit()

CORE_ADDR linux_get_pc_64bit ( struct regcache regcache)

Definition at line 7436 of file linux-low.c.

References collect_register_by_name(), debug_printf(), and debug_threads.

Referenced by aarch64_get_pc().

◆ linux_pid_exe_is_elf_64_file()

int linux_pid_exe_is_elf_64_file ( int  pid,
unsigned int *  machine 
)

◆ linux_set_pc_32bit()

void linux_set_pc_32bit ( struct regcache regcache,
CORE_ADDR  pc 
)

Definition at line 7400 of file linux-low.c.

References supply_register_by_name().

Referenced by aarch64_set_pc().

◆ linux_set_pc_64bit()

void linux_set_pc_64bit ( struct regcache regcache,
CORE_ADDR  pc 
)

Definition at line 7425 of file linux-low.c.

References supply_register_by_name().

Referenced by aarch64_set_pc().

◆ thread_db_detach()

void thread_db_detach ( struct process_info )

◆ thread_db_get_tls_address()

int thread_db_get_tls_address ( struct thread_info thread,
CORE_ADDR  offset,
CORE_ADDR  load_module,
CORE_ADDR address 
)

◆ thread_db_handle_monitor_command()

int thread_db_handle_monitor_command ( char *  )

◆ thread_db_init()

int thread_db_init ( void  )

◆ thread_db_look_up_one_symbol()

int thread_db_look_up_one_symbol ( const char *  name,
CORE_ADDR addrp 
)

◆ thread_db_mourn()

void thread_db_mourn ( struct process_info )

◆ thread_db_notice_clone()

void thread_db_notice_clone ( struct thread_info parent_thr,
ptid_t  child_ptid 
)

◆ thread_db_thread_handle()

bool thread_db_thread_handle ( ptid_t  ptid,
gdb_byte **  handle,
int *  handle_len 
)

Variable Documentation

◆ have_ptrace_getregset

int have_ptrace_getregset

Definition at line 137 of file linux-low.c.

Referenced by arm_arch_setup(), arm_regs_info(), and x86_linux_read_description().

◆ the_low_target

struct linux_target_ops the_low_target

Definition at line 2955 of file linux-aarch64-low.c.