GDB (xrefs)
Classes | Functions
compile-c-symbols.c File Reference
#include "defs.h"
#include "compile-internal.h"
#include "symtab.h"
#include "parser-defs.h"
#include "block.h"
#include "objfiles.h"
#include "compile.h"
#include "value.h"
#include "exceptions.h"
#include "gdbtypes.h"
#include "dwarf2loc.h"

Go to the source code of this file.

Classes

struct  symbol_error
 

Functions

static hashval_t hash_symbol_error (const void *a)
 
static int eq_symbol_error (const void *a, const void *b)
 
static void del_symbol_error (void *a)
 
static void insert_symbol_error (htab_t hash, const struct symbol *sym, const char *text)
 
static void error_symbol_once (struct compile_c_instance *context, const struct symbol *sym)
 
static char * symbol_substitution_name (struct symbol *sym)
 
static void convert_one_symbol (struct compile_c_instance *context, struct symbol *sym, int is_global, int is_local)
 
static void convert_symbol_sym (struct compile_c_instance *context, const char *identifier, struct symbol *sym, domain_enum domain)
 
static void convert_symbol_bmsym (struct compile_c_instance *context, struct bound_minimal_symbol bmsym)
 
void gcc_convert_symbol (void *datum, struct gcc_c_context *gcc_context, enum gcc_c_oracle_request request, const char *identifier)
 
gcc_address gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context, const char *identifier)
 
static hashval_t hash_symname (const void *a)
 
static int eq_symname (const void *a, const void *b)
 
static int symbol_seen (htab_t hashtab, struct symbol *sym)
 
static void generate_vla_size (struct compile_c_instance *compiler, struct ui_file *stream, struct gdbarch *gdbarch, unsigned char *registers_used, CORE_ADDR pc, struct type *type, struct symbol *sym)
 
static void generate_c_for_for_one_variable (struct compile_c_instance *compiler, struct ui_file *stream, struct gdbarch *gdbarch, unsigned char *registers_used, CORE_ADDR pc, struct symbol *sym)
 
unsigned char * generate_c_for_variable_locations (struct compile_c_instance *compiler, struct ui_file *stream, struct gdbarch *gdbarch, const struct block *block, CORE_ADDR pc)
 

Function Documentation

static void convert_one_symbol ( struct compile_c_instance context,
struct symbol sym,
int  is_global,
int  is_local 
)
static
static void convert_symbol_bmsym ( struct compile_c_instance context,
struct bound_minimal_symbol  bmsym 
)
static
static void convert_symbol_sym ( struct compile_c_instance context,
const char *  identifier,
struct symbol sym,
domain_enum  domain 
)
static
static void del_symbol_error ( void *  a)
static

Definition at line 73 of file compile-c-symbols.c.

References symbol_error::message, and xfree().

Referenced by generate_c_for_for_one_variable().

static int eq_symbol_error ( const void *  a,
const void *  b 
)
static

Definition at line 62 of file compile-c-symbols.c.

References symbol_error::sym.

Referenced by generate_c_for_for_one_variable().

static int eq_symname ( const void *  a,
const void *  b 
)
static

Definition at line 559 of file compile-c-symbols.c.

References SYMBOL_NATURAL_NAME.

Referenced by generate_c_for_variable_locations().

static void error_symbol_once ( struct compile_c_instance context,
const struct symbol sym 
)
static
void gcc_convert_symbol ( void *  datum,
struct gcc_c_context *  gcc_context,
enum gcc_c_oracle_request  request,
const char *  identifier 
)
gcc_address gcc_symbol_address ( void *  datum,
struct gcc_c_context *  gcc_context,
const char *  identifier 
)
static void generate_c_for_for_one_variable ( struct compile_c_instance compiler,
struct ui_file stream,
struct gdbarch gdbarch,
unsigned char *  registers_used,
CORE_ADDR  pc,
struct symbol sym 
)
static
unsigned char* generate_c_for_variable_locations ( struct compile_c_instance compiler,
struct ui_file stream,
struct gdbarch gdbarch,
const struct block block,
CORE_ADDR  pc 
)
static void generate_vla_size ( struct compile_c_instance compiler,
struct ui_file stream,
struct gdbarch gdbarch,
unsigned char *  registers_used,
CORE_ADDR  pc,
struct type type,
struct symbol sym 
)
static
static hashval_t hash_symbol_error ( const void *  a)
static

Definition at line 52 of file compile-c-symbols.c.

References symbol_error::sym.

Referenced by generate_c_for_for_one_variable().

static hashval_t hash_symname ( const void *  a)
static

Definition at line 548 of file compile-c-symbols.c.

References SYMBOL_NATURAL_NAME.

Referenced by generate_c_for_variable_locations().

static void insert_symbol_error ( htab_t  hash,
const struct symbol sym,
const char *  text 
)
static

Definition at line 84 of file compile-c-symbols.c.

References symbol_error::message, and symbol_error::sym.

Referenced by generate_c_for_for_one_variable().

static int symbol_seen ( htab_t  hashtab,
struct symbol sym 
)
static

Definition at line 571 of file compile-c-symbols.c.

Referenced by generate_c_for_variable_locations().

static char* symbol_substitution_name ( struct symbol sym)
static

Definition at line 132 of file compile-c-symbols.c.

References SYMBOL_NATURAL_NAME.

Referenced by convert_one_symbol(), and generate_c_for_for_one_variable().