UnivesalDisassembler(2003)

shared.h File Reference

#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <iomanip>
#include <libgen.h>

Go to the source code of this file.

Classes

struct  SectionData
 A section object including only data. More...
struct  BinFileData
 Binary File Data. Used by Ev_GetAllSections. More...
class  AbstractSymbols
 Proxy. Used for share a symbol table. Plugin creates this Symbols uses it. More...

Defines

#define PLUGIN_SECTIONS   0x01
#define PLUGIN_SYMTABLE   0x02
#define pdefined(p)   (Params->find(p)!=Params->end())
 Returns true if parameter p is defined.
#define verbose(t)   if(pdefined("-v") || pdefined("--debug")) cerr<<dec<<setfill(' ')<<t;else
 Print verbose information (-v parameter)
#define debug(t)   if(pdefined("--debug")) cerr<<dec<<setfill(' ')<<t;else
 Print debug information (--debug parameter)
#define lower(c)   (c>='A'&&c<='Z'?c+'a'-'A':c)

Typedefs

typedef unsigned int Address
 Address is a type for addressing.
typedef unsigned char byte
 Byte is a type of a single byte.
typedef map< string, string > Parameters
typedef void(* Splugin_init )(int &type, const char *&ident, const char *&syntax, Parameters *p)
typedef map< Address, string > MSymbols
 A component of AbstractSymbols. Map of all symbols.

Variables

ParametersParams
 Parameters map.

Define Documentation

#define debug (   t)    if(pdefined("--debug")) cerr<<dec<<setfill(' ')<<t;else

Print debug information (--debug parameter)

Definition at line 56 of file shared.h.

Referenced by disasm_section(), BinaryFile::Free(), is_file_defined(), load_sections(), InstructionSet::LoadFile(), main(), Plugin::Open(), and OpenPlugins().

#define lower (   c)    (c>='A'&&c<='Z'?c+'a'-'A':c)

Definition at line 58 of file shared.h.

Referenced by hex2uint(), Scanner::Scan(), and TableItem::TableItem().

#define pdefined (   p)    (Params->find(p)!=Params->end())

Returns true if parameter p is defined.

Definition at line 50 of file shared.h.

Referenced by is_file_defined(), load_parameters(), load_sections(), locate_address(), and main().

#define PLUGIN_SECTIONS   0x01

Definition at line 24 of file shared.h.

Referenced by Plugin::Info(), Plugin::Open(), and plugin_init().

#define PLUGIN_SYMTABLE   0x02

Definition at line 25 of file shared.h.

Referenced by Plugin::Info(), Symbols::Load(), Plugin::Open(), and plugin_init().

#define verbose (   t)    if(pdefined("-v") || pdefined("--debug")) cerr<<dec<<setfill(' ')<<t;else

Print verbose information (-v parameter)

Definition at line 53 of file shared.h.


Typedef Documentation

typedef unsigned int Address

Address is a type for addressing.

Definition at line 31 of file shared.h.

typedef unsigned char byte

Byte is a type of a single byte.

Definition at line 33 of file shared.h.

typedef map<Address, string> MSymbols

A component of AbstractSymbols. Map of all symbols.

Definition at line 91 of file shared.h.

typedef map<string, string> Parameters

Definition at line 44 of file shared.h.

typedef void(* Splugin_init)(int &type, const char *&ident, const char *&syntax, Parameters *p)

Definition at line 60 of file shared.h.


Variable Documentation

Parameters map.

Definition at line 24 of file binonly.cc.

Referenced by load_sections(), Plugin::Open(), and plugin_init().