GDBserver
Classes | Macros | Enumerations | Functions | Variables
tracepoint.h File Reference

Go to the source code of this file.

Classes

struct  fast_tpoint_collect_status
 

Macros

#define IPA_BUFSIZ   100
 
#define ATTR_USED
 
#define ATTR_NOINLINE
 
#define EXPORTED_SYMBOL
 
#define IP_AGENT_EXPORT_FUNC
 
#define IP_AGENT_EXPORT_VAR
 
#define IP_AGENT_EXPORT_VAR_DECL   extern
 

Enumerations

enum  fast_tpoint_collect_result { fast_tpoint_collect_result::not_collecting, fast_tpoint_collect_result::before_insn, fast_tpoint_collect_result::at_insn }
 

Functions

void initialize_tracepoint (void)
 
void tracepoint_look_up_symbols (void)
 
void stop_tracing (void)
 
int handle_tracepoint_general_set (char *own_buf)
 
int handle_tracepoint_query (char *own_buf)
 
int tracepoint_finished_step (struct thread_info *tinfo, CORE_ADDR stop_pc)
 
int tracepoint_was_hit (struct thread_info *tinfo, CORE_ADDR stop_pc)
 
void release_while_stepping_state_list (struct thread_info *tinfo)
 
int in_readonly_region (CORE_ADDR addr, ULONGEST length)
 
int traceframe_read_mem (int tfnum, CORE_ADDR addr, unsigned char *buf, ULONGEST length, ULONGEST *nbytes)
 
int fetch_traceframe_registers (int tfnum, struct regcache *regcache, int regnum)
 
int traceframe_read_sdata (int tfnum, ULONGEST offset, unsigned char *buf, ULONGEST length, ULONGEST *nbytes)
 
int traceframe_read_info (int tfnum, struct buffer *buffer)
 
fast_tpoint_collect_result fast_tracepoint_collecting (CORE_ADDR thread_area, CORE_ADDR stop_pc, struct fast_tpoint_collect_status *status)
 
void force_unlock_trace_buffer (void)
 
int handle_tracepoint_bkpts (struct thread_info *tinfo, CORE_ADDR stop_pc)
 
int claim_trampoline_space (ULONGEST used, CORE_ADDR *trampoline)
 
int have_fast_tracepoint_trampoline_buffer (char *msgbuf)
 
void gdb_agent_about_to_close (int pid)
 
int agent_mem_read (struct eval_agent_expr_context *ctx, unsigned char *to, CORE_ADDR from, ULONGEST len)
 
LONGEST agent_get_trace_state_variable_value (int num)
 
void agent_set_trace_state_variable_value (int num, LONGEST val)
 
int agent_tsv_read (struct eval_agent_expr_context *ctx, int n)
 
int agent_mem_read_string (struct eval_agent_expr_context *ctx, unsigned char *to, CORE_ADDR from, ULONGEST len)
 
ULONGEST get_raw_reg (const unsigned char *raw_regs, int regnum)
 
CORE_ADDR get_raw_reg_func_addr (void)
 
CORE_ADDR get_get_tsv_func_addr (void)
 
CORE_ADDR get_set_tsv_func_addr (void)
 

Variables

IP_AGENT_EXPORT_VAR_DECL int tracing
 
int disconnected_tracing
 
int current_traceframe
 

Macro Definition Documentation

◆ ATTR_NOINLINE

#define ATTR_NOINLINE

Definition at line 33 of file tracepoint.h.

◆ ATTR_USED

#define ATTR_USED

Definition at line 32 of file tracepoint.h.

◆ EXPORTED_SYMBOL

#define EXPORTED_SYMBOL

Definition at line 44 of file tracepoint.h.

◆ IP_AGENT_EXPORT_FUNC

#define IP_AGENT_EXPORT_FUNC

Definition at line 65 of file tracepoint.h.

◆ IP_AGENT_EXPORT_VAR

#define IP_AGENT_EXPORT_VAR

Definition at line 66 of file tracepoint.h.

◆ IP_AGENT_EXPORT_VAR_DECL

#define IP_AGENT_EXPORT_VAR_DECL   extern

Definition at line 67 of file tracepoint.h.

◆ IPA_BUFSIZ

#define IPA_BUFSIZ   100

Enumeration Type Documentation

◆ fast_tpoint_collect_result

Enumerator
not_collecting 
before_insn 
at_insn 

Definition at line 121 of file tracepoint.h.

Function Documentation

◆ agent_get_trace_state_variable_value()

LONGEST agent_get_trace_state_variable_value ( int  num)

Definition at line 2140 of file tracepoint.c.

References get_trace_state_variable_value().

Referenced by gdb_eval_agent_expr().

◆ agent_mem_read()

int agent_mem_read ( struct eval_agent_expr_context ctx,
unsigned char *  to,
CORE_ADDR  from,
ULONGEST  len 
)

◆ agent_mem_read_string()

int agent_mem_read_string ( struct eval_agent_expr_context ctx,
unsigned char *  to,
CORE_ADDR  from,
ULONGEST  len 
)

◆ agent_set_trace_state_variable_value()

void agent_set_trace_state_variable_value ( int  num,
LONGEST  val 
)

Definition at line 2146 of file tracepoint.c.

References set_trace_state_variable_value().

Referenced by gdb_eval_agent_expr().

◆ agent_tsv_read()

int agent_tsv_read ( struct eval_agent_expr_context ctx,
int  n 
)

◆ claim_trampoline_space()

int claim_trampoline_space ( ULONGEST  used,
CORE_ADDR trampoline 
)

◆ fast_tracepoint_collecting()

fast_tpoint_collect_result fast_tracepoint_collecting ( CORE_ADDR  thread_area,
CORE_ADDR  stop_pc,
struct fast_tpoint_collect_status status 
)

◆ fetch_traceframe_registers()

int fetch_traceframe_registers ( int  tfnum,
struct regcache regcache,
int  regnum 
)

◆ force_unlock_trace_buffer()

void force_unlock_trace_buffer ( void  )

◆ gdb_agent_about_to_close()

void gdb_agent_about_to_close ( int  pid)

◆ get_get_tsv_func_addr()

CORE_ADDR get_get_tsv_func_addr ( void  )

◆ get_raw_reg()

ULONGEST get_raw_reg ( const unsigned char *  raw_regs,
int  regnum 
)

◆ get_raw_reg_func_addr()

CORE_ADDR get_raw_reg_func_addr ( void  )

◆ get_set_tsv_func_addr()

CORE_ADDR get_set_tsv_func_addr ( void  )

◆ handle_tracepoint_bkpts()

int handle_tracepoint_bkpts ( struct thread_info tinfo,
CORE_ADDR  stop_pc 
)

◆ handle_tracepoint_general_set()

int handle_tracepoint_general_set ( char *  own_buf)

◆ handle_tracepoint_query()

int handle_tracepoint_query ( char *  own_buf)

◆ have_fast_tracepoint_trampoline_buffer()

int have_fast_tracepoint_trampoline_buffer ( char *  msgbuf)

◆ in_readonly_region()

int in_readonly_region ( CORE_ADDR  addr,
ULONGEST  length 
)

◆ initialize_tracepoint()

void initialize_tracepoint ( void  )

◆ release_while_stepping_state_list()

void release_while_stepping_state_list ( struct thread_info tinfo)

◆ stop_tracing()

void stop_tracing ( void  )

◆ traceframe_read_info()

int traceframe_read_info ( int  tfnum,
struct buffer buffer 
)

◆ traceframe_read_mem()

int traceframe_read_mem ( int  tfnum,
CORE_ADDR  addr,
unsigned char *  buf,
ULONGEST  length,
ULONGEST nbytes 
)

◆ traceframe_read_sdata()

int traceframe_read_sdata ( int  tfnum,
ULONGEST  offset,
unsigned char *  buf,
ULONGEST  length,
ULONGEST nbytes 
)

◆ tracepoint_finished_step()

int tracepoint_finished_step ( struct thread_info tinfo,
CORE_ADDR  stop_pc 
)

◆ tracepoint_look_up_symbols()

void tracepoint_look_up_symbols ( void  )

◆ tracepoint_was_hit()

int tracepoint_was_hit ( struct thread_info tinfo,
CORE_ADDR  stop_pc 
)

Variable Documentation

◆ current_traceframe

int current_traceframe

◆ disconnected_tracing

int disconnected_tracing

Definition at line 1251 of file tracepoint.c.

Referenced by captured_main(), cmd_qtdisconnected(), cmd_qtstatus(), and handle_detach().

◆ tracing

Definition at line 70 of file tracepoint.h.