GDB (xrefs)
Defines | Functions
/home/stan/gdb/src/gdb/btrace.c File Reference
#include "btrace.h"
#include "gdbthread.h"
#include "exceptions.h"
#include "inferior.h"
#include "target.h"
#include "record.h"
#include "symtab.h"
#include "disasm.h"
#include "source.h"
#include "filenames.h"
#include "xml-support.h"

Go to the source code of this file.

Defines

#define DEBUG(msg, args...)
#define DEBUG_FTRACE(msg, args...)   DEBUG ("[ftrace] " msg, ##args)

Functions

static void btrace_init_insn_iterator (struct btrace_thread_info *btinfo)
static void btrace_init_func_iterator (struct btrace_thread_info *btinfo)
static VEC (btrace_inst_s)
static const char * ftrace_print_function_name (struct btrace_func *bfun)
static const char * ftrace_print_filename (struct btrace_func *bfun)
static void ftrace_debug (struct btrace_func *bfun, const char *prefix)
static void ftrace_init_func (struct btrace_func *bfun, struct minimal_symbol *mfun, struct symbol *fun, unsigned int idx)
static int ftrace_function_switched (struct btrace_func *bfun, struct minimal_symbol *mfun, struct symbol *fun)
static int ftrace_skip_file (struct btrace_func *bfun, const char *filename)
static VEC (btrace_func_s)
void btrace_enable (struct thread_info *tp)
void btrace_disable (struct thread_info *tp)
void btrace_teardown (struct thread_info *tp)
void btrace_fetch (struct thread_info *tp)
void btrace_clear (struct thread_info *tp)
void btrace_free_objfile (struct objfile *objfile)
 VEC (btrace_block_s)

Define Documentation

#define DEBUG (   msg,
  args... 
)
Value:
do                                                                      \
    {                                                                   \
      if (record_debug != 0)                                            \
        fprintf_unfiltered (gdb_stdlog,                                 \
                            "[btrace] " msg "\n", ##args);              \
    }                                                                   \
  while (0)

Definition at line 37 of file btrace.c.

Referenced by btrace_clear(), btrace_disable(), btrace_enable(), btrace_fetch(), btrace_free_objfile(), btrace_init_func_iterator(), btrace_init_insn_iterator(), btrace_teardown(), and VEC().

#define DEBUG_FTRACE (   msg,
  args... 
)    DEBUG ("[ftrace] " msg, ##args)

Definition at line 46 of file btrace.c.

Referenced by ftrace_debug(), and VEC().


Function Documentation

void btrace_clear ( struct thread_info tp)
void btrace_disable ( struct thread_info tp)
void btrace_enable ( struct thread_info tp)
void btrace_fetch ( struct thread_info tp)
void btrace_free_objfile ( struct objfile objfile)

Definition at line 442 of file btrace.c.

References ALL_THREADS, btrace_clear(), and DEBUG.

Referenced by free_objfile().

static void btrace_init_func_iterator ( struct btrace_thread_info btinfo) [static]
static void btrace_init_insn_iterator ( struct btrace_thread_info btinfo) [static]
void btrace_teardown ( struct thread_info tp)
static void ftrace_debug ( struct btrace_func bfun,
const char *  prefix 
) [static]
static int ftrace_function_switched ( struct btrace_func bfun,
struct minimal_symbol mfun,
struct symbol fun 
) [static]

Definition at line 197 of file btrace.c.

References btrace_func::msym, btrace_func::sym, SYMBOL_LINKAGE_NAME, symbol::symtab, and symtab_to_fullname().

Referenced by VEC().

static void ftrace_init_func ( struct btrace_func bfun,
struct minimal_symbol mfun,
struct symbol fun,
unsigned int  idx 
) [static]
static const char* ftrace_print_filename ( struct btrace_func bfun) [static]

Definition at line 154 of file btrace.c.

References btrace_func::sym, symbol::symtab, and symtab_to_filename_for_display().

Referenced by ftrace_debug().

static const char* ftrace_print_function_name ( struct btrace_func bfun) [static]

Definition at line 133 of file btrace.c.

References btrace_func::msym, btrace_func::sym, and SYMBOL_PRINT_NAME.

Referenced by ftrace_debug().

static int ftrace_skip_file ( struct btrace_func bfun,
const char *  filename 
) [static]

Definition at line 239 of file btrace.c.

References btrace_func::sym, symbol::symtab, and symtab_to_fullname().

Referenced by VEC().

static VEC ( btrace_inst_s  ) [static]
static VEC ( btrace_func_s  ) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines