GDB (API)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
call_site Struct Reference

#include "gdbtypes.h"

Classes

struct  target
 

Public Member Functions

 call_site (CORE_ADDR pc, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile)
 
CORE_ADDR pc () const
 
void iterate_over_addresses (struct gdbarch *call_site_gdbarch, frame_info_ptr caller_frame, call_site_target::iterate_ftype callback) const
 

Static Public Member Functions

static int eq (const call_site *a, const call_site *b)
 
static hashval_t hash (const call_site *a)
 
static int eq (const void *a, const void *b)
 
static hashval_t hash (const void *a)
 

Public Attributes

struct call_sitetail_call_next = nullptr
 
unsigned parameter_count = 0
 
dwarf2_per_cu_data *const per_cu = nullptr
 
dwarf2_per_objfile *const per_objfile = nullptr
 
struct call_site_parameter parameter []
 

Detailed Description

A place where a function gets called from, represented by DW_TAG_call_site. It can be looked up from symtab->call_site_htab.

Definition at line 1885 of file gdbtypes.h.

Constructor & Destructor Documentation

◆ call_site()

call_site::call_site ( CORE_ADDR  pc,
dwarf2_per_cu_data *  per_cu,
dwarf2_per_objfile *  per_objfile 
)
inline

Definition at line 1887 of file gdbtypes.h.

Member Function Documentation

◆ eq() [1/2]

static int call_site::eq ( const call_site a,
const call_site b 
)
inlinestatic

Definition at line 1893 of file gdbtypes.h.

◆ eq() [2/2]

static int call_site::eq ( const void *  a,
const void *  b 
)
inlinestatic

Definition at line 1905 of file gdbtypes.h.

◆ hash() [1/2]

static hashval_t call_site::hash ( const call_site a)
inlinestatic

Definition at line 1899 of file gdbtypes.h.

◆ hash() [2/2]

static hashval_t call_site::hash ( const void *  a)
inlinestatic

Definition at line 1911 of file gdbtypes.h.

◆ iterate_over_addresses()

void call_site::iterate_over_addresses ( struct gdbarch *  call_site_gdbarch,
frame_info_ptr  caller_frame,
call_site_target::iterate_ftype  callback 
) const
inline

Definition at line 1924 of file gdbtypes.h.

◆ pc()

CORE_ADDR call_site::pc ( ) const

Member Data Documentation

◆ parameter

struct call_site_parameter call_site::parameter[]

Describe DW_TAG_call_site's DW_TAG_formal_parameter.

Definition at line 1962 of file gdbtypes.h.

◆ parameter_count

unsigned call_site::parameter_count = 0

Size of the PARAMETER array.

Definition at line 1944 of file gdbtypes.h.

◆ per_cu

dwarf2_per_cu_data* const call_site::per_cu = nullptr

CU of the function where the call is located. It gets used for DWARF blocks execution in the parameter array below.

Definition at line 1949 of file gdbtypes.h.

◆ per_objfile

dwarf2_per_objfile* const call_site::per_objfile = nullptr

Definition at line 1953 of file gdbtypes.h.

◆ tail_call_next

struct call_site* call_site::tail_call_next = nullptr

List successor with head in FUNC_TYPE.TAIL_CALL_LIST.

Definition at line 1935 of file gdbtypes.h.


The documentation for this struct was generated from the following file: