Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

analy_names.cc File Reference

#include "analy_names.h"
#include "htdebug.h"
#include "htstring.h"
#include "language.h"
#include "snprintf.h"
#include "stdio.h"
#include "string.h"
#include "tools.h"

Go to the source code of this file.

Functions

char * import_func_name (const char *dllname, const char *funcname, int ordinal)
char * export_func_name (const char *funcname, int ordinal)
char * label_type (int lt)
char * label_type_short (int lt)
char * xref_type (int xt)
char xref_type_short (int xt)
char * label_prefix (const char *p)
bool valid_name (const char *str)
void make_valid_name (char *result, const char *str)
char * addr_label ()
char * real_name (char *s)
char * quote_string (char *s)
char * reference_string (char *s)
char * comment_lookup (int special)
void init_analy_names ()
void done_analy_names ()

Variables

char * label_types [] = {"unknown", "function", "location ", "data"}
char * label_types_short [] = {"? ", "func", "loc ", "data"}
char * xref_types [] = {"read", "write", "offset", "jump", "call", "ijump", "icall"}
char xref_types_short [] = "rwojcJC"
char * label_prefixes []
char the_label_prefix_string [2] = "l"
ht_sorted_string_listreference_strings


Function Documentation

char* addr_label  ) 
 

Definition at line 151 of file analy_names.cc.

References the_label_prefix_string.

char* comment_lookup int  special  ) 
 

Definition at line 194 of file analy_names.cc.

Referenced by CommentList::getName().

void done_analy_names  ) 
 

Definition at line 205 of file analy_names.cc.

References ht_sorted_list::done(), and reference_strings.

char* export_func_name const char *  funcname,
int  ordinal
 

Definition at line 42 of file analy_names.cc.

References ht_snprintf(), and ht_strdup().

Referenced by NEAnalyser::beginAnalysis(), and PEAnalyser::beginAnalysis().

char* import_func_name const char *  dllname,
const char *  funcname,
int  ordinal
 

Definition at line 30 of file analy_names.cc.

References ht_snprintf(), and ht_strdup().

Referenced by NEAnalyser::beginAnalysis(), PEAnalyser::beginAnalysis(), and XBEAnalyser::beginAnalysis().

void init_analy_names  ) 
 

Definition at line 199 of file analy_names.cc.

References compare_keys_string(), ht_sorted_string_list::init(), and reference_strings.

char* label_prefix const char *  p  ) 
 

Definition at line 95 of file analy_names.cc.

References label_prefixes, and LPRFX_MAX.

Referenced by Analyser::addAddressSymbol(), and Analyser::doBranch().

char* label_type int  lt  ) 
 

Definition at line 56 of file analy_names.cc.

References assert, and label_types.

char* label_type_short int  lt  ) 
 

Definition at line 62 of file analy_names.cc.

References assert, and label_types_short.

Referenced by SymbolBox::getStr().

void make_valid_name char *  result,
const char *  str
 

Definition at line 122 of file analy_names.cc.

References mapchar.

Referenced by MachoAnalyser::beginAnalysis(), Analyser::dataAccess(), ht_aviewer::dataStringDialog(), ht_aviewer::handlemsg(), ElfAnalyser::initInsertFakeSymbols(), and ElfAnalyser::initInsertSymbols().

char* quote_string char *  s  ) 
 

Definition at line 174 of file analy_names.cc.

References M_PREFIX_DUP, and smalloc().

char* real_name char *  s  ) 
 

Definition at line 156 of file analy_names.cc.

References M_PREFIX_DUP, M_PREFIX_LABEL, M_PREFIX_REF, and NULL.

char* reference_string char *  s  ) 
 

Definition at line 184 of file analy_names.cc.

References ht_sorted_string_list::get_string(), ht_sorted_string_list::insert_string(), and reference_strings.

bool valid_name const char *  str  ) 
 

Definition at line 104 of file analy_names.cc.

References mapchar.

Referenced by ht_aviewer::handlemsg().

char* xref_type int  xt  ) 
 

Definition at line 71 of file analy_names.cc.

References assert, and xref_types.

Referenced by ht_aviewer::showXRefs().

char xref_type_short int  xt  ) 
 

Definition at line 77 of file analy_names.cc.

References assert, and xref_types_short.

Referenced by generate_html_output(), and AnalyserOutput::generateAddr().


Variable Documentation

char* label_prefixes[]
 

Initial value:

 {
        "unknown",
        "loc",
        "sub",
        "stub",
        "wrapper",
        "offset",
        "data",
        "?data",
        "str"
}

Definition at line 83 of file analy_names.cc.

Referenced by label_prefix().

char* label_types[] = {"unknown", "function", "location ", "data"}
 

Definition at line 53 of file analy_names.cc.

Referenced by label_type().

char* label_types_short[] = {"? ", "func", "loc ", "data"}
 

Definition at line 54 of file analy_names.cc.

Referenced by label_type_short().

ht_sorted_string_list* reference_strings
 

Definition at line 182 of file analy_names.cc.

Referenced by done_analy_names(), init_analy_names(), and reference_string().

char the_label_prefix_string[2] = "l"
 

Definition at line 149 of file analy_names.cc.

Referenced by addr_label().

char* xref_types[] = {"read", "write", "offset", "jump", "call", "ijump", "icall"}
 

Definition at line 68 of file analy_names.cc.

Referenced by xref_type().

char xref_types_short[] = "rwojcJC"
 

Definition at line 69 of file analy_names.cc.

Referenced by xref_type_short().


Generated on Fri May 7 21:15:46 2004 by doxygen 1.3.5