#include <vector>
#include <string>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <setjmp.h>
#include <signal.h>
#include <unistd.h>
#include "code-ranges.h"
#include "eh-frames.h"
#include "process-ranges.h"
#include "function-entries.h"
#include "variable-entries.h"
#include "sections.h"
#include "server.h"
#include "syserv-mesg.h"
#include "Symtab.h"
Go to the source code of this file.
|
static void | usage (char *command, int status) |
|
static void | setup_segv_handler (void) |
|
int | main (int argc, char *argv[]) |
|
int | c_mode (void) |
|
int | server_mode (void) |
|
char * | cplus_demangle (char *s, int opts) |
|
void | add_frame_addr (void *addr) |
|
static void | segv_handler (int sig) |
|
static bool | matches_prefix (string s, const char *pre, int n) |
|
static bool | pathscale_filter (Symbol *sym) |
|
static bool | report_symbol (Symbol *sym) |
|
static string * | code_range_comment (string &name, string section, const char *which) |
|
static void | note_code_range (const char *sname, Region *s, long memaddr, DiscoverFnTy discover) |
|
static void | note_section (Symtab *syms, const char *sname, DiscoverFnTy discover) |
|
static void | note_code_ranges (Symtab *syms, DiscoverFnTy fn_discovery) |
|
static void | dump_symbols (int dwarf_fd, Symtab *syms, vector< Symbol *> &symvec, DiscoverFnTy fn_discovery) |
|
static void | dump_symbols_var (int dwarf_fd, Symtab *syms, vector< Symbol *> &symvec, DiscoverFnTy fn_discovery) |
|
static void | dump_file_symbols (int dwarf_fd, Symtab *syms, vector< Symbol *> &symvec, DiscoverFnTy fn_discovery, int query) |
|
static void | dump_header_info (int is_relocatable, uintptr_t ref_offset) |
|
static void | assert_file_is_readable (const char *filename) |
|
void | dump_file_info (const char *filename, DiscoverFnTy fn_discovery, int query) |
|
◆ __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS |
◆ PATHSCALE_EXCEPTION_HANDLER_PREFIX
#define PATHSCALE_EXCEPTION_HANDLER_PREFIX "Handler." |
◆ STRLEN
#define STRLEN |
( |
|
s | ) |
(sizeof(s) - 1) |
◆ USE_PATHSCALE_SYMBOL_FILTER
#define USE_PATHSCALE_SYMBOL_FILTER |
◆ USE_SYMTABAPI_EXCEPTION_BLOCKS
#define USE_SYMTABAPI_EXCEPTION_BLOCKS |
◆ anonymous enum
Enumerator |
---|
MODE_TEXT | |
MODE_C | |
MODE_SERVER | |
Definition at line 110 of file main.cpp.
◆ add_frame_addr()
void add_frame_addr |
( |
void * |
addr | ) |
|
◆ assert_file_is_readable()
static void assert_file_is_readable |
( |
const char * |
filename | ) |
|
|
static |
◆ c_mode()
◆ code_range_comment()
static string* code_range_comment |
( |
string & |
name, |
|
|
string |
section, |
|
|
const char * |
which |
|
) |
| |
|
static |
◆ cplus_demangle()
char* cplus_demangle |
( |
char * |
s, |
|
|
int |
opts |
|
) |
| |
◆ dump_file_info()
void dump_file_info |
( |
const char * |
filename, |
|
|
DiscoverFnTy |
fn_discovery, |
|
|
int |
query |
|
) |
| |
◆ dump_file_symbols()
static void dump_file_symbols |
( |
int |
dwarf_fd, |
|
|
Symtab * |
syms, |
|
|
vector< Symbol *> & |
symvec, |
|
|
DiscoverFnTy |
fn_discovery, |
|
|
int |
query |
|
) |
| |
|
static |
◆ dump_header_info()
static void dump_header_info |
( |
int |
is_relocatable, |
|
|
uintptr_t |
ref_offset |
|
) |
| |
|
static |
◆ dump_symbols()
static void dump_symbols |
( |
int |
dwarf_fd, |
|
|
Symtab * |
syms, |
|
|
vector< Symbol *> & |
symvec, |
|
|
DiscoverFnTy |
fn_discovery |
|
) |
| |
|
static |
◆ dump_symbols_var()
static void dump_symbols_var |
( |
int |
dwarf_fd, |
|
|
Symtab * |
syms, |
|
|
vector< Symbol *> & |
symvec, |
|
|
DiscoverFnTy |
fn_discovery |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ matches_prefix()
static bool matches_prefix |
( |
string |
s, |
|
|
const char * |
pre, |
|
|
int |
n |
|
) |
| |
|
static |
◆ note_code_range()
static void note_code_range |
( |
const char * |
sname, |
|
|
Region * |
s, |
|
|
long |
memaddr, |
|
|
DiscoverFnTy |
discover |
|
) |
| |
|
static |
◆ note_code_ranges()
static void note_code_ranges |
( |
Symtab * |
syms, |
|
|
DiscoverFnTy |
fn_discovery |
|
) |
| |
|
static |
◆ note_section()
static void note_section |
( |
Symtab * |
syms, |
|
|
const char * |
sname, |
|
|
DiscoverFnTy |
discover |
|
) |
| |
|
static |
◆ pathscale_filter()
static bool pathscale_filter |
( |
Symbol * |
sym | ) |
|
|
static |
◆ report_symbol()
static bool report_symbol |
( |
Symbol * |
sym | ) |
|
|
static |
◆ segv_handler()
static void segv_handler |
( |
int |
sig | ) |
|
|
static |
◆ server_mode()
◆ setup_segv_handler()
static void setup_segv_handler |
( |
void |
| ) |
|
|
static |
◆ usage()
static void usage |
( |
char * |
command, |
|
|
int |
status |
|
) |
| |
|
static |
◆ segv_recover
◆ the_mode
◆ verbose