UnivesalDisassembler(2003)
|
#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "shared.h"
Go to the source code of this file.
Defines | |
#define | pluginname "binonly.so" |
Functions | |
void | plugin_init (int &type, const char *&ident, const char *&syntax, Parameters *p) |
int | is_file_defined (const char *file) |
unsigned | hex2uint (const string hex) |
unsigned | number2uint (const string num) |
int | load_sections (BinFileData &bfdata) |
Variables | |
Parameters * | Params |
Parameters map. | |
const char * | _syntax |
#define pluginname "binonly.so" |
Definition at line 22 of file binonly.cc.
Referenced by is_file_defined(), and load_sections().
unsigned hex2uint | ( | const string | hex | ) |
Definition at line 49 of file binonly.cc.
Referenced by locate_address(), main(), and number2uint().
int is_file_defined | ( | const char * | file | ) |
Definition at line 38 of file binonly.cc.
References debug, pdefined, and pluginname.
int load_sections | ( | BinFileData & | bfdata | ) |
Definition at line 86 of file binonly.cc.
References SectionData::addr, SectionData::content, debug, BinFileData::entry, SectionData::executable, SectionData::name, BinFileData::name, number2uint(), Params, pdefined, pluginname, BinFileData::Sections, and SectionData::size.
unsigned number2uint | ( | const string | num | ) |
Definition at line 69 of file binonly.cc.
Referenced by load_sections(), and main().
void plugin_init | ( | int & | type, |
const char *& | ident, | ||
const char *& | syntax, | ||
Parameters * | p | ||
) |
Definition at line 30 of file binonly.cc.
References _syntax, Params, and PLUGIN_SECTIONS.
Referenced by Plugin::Open().
const char * _syntax |
"\n\ -bof Activate this plugin for any binary file. Load all binary\n\ into one section .bof\n\ -bofentry address\n\ set entry of section .bof\n\ -bofnoexec unset flag executable at section .bof"
Definition at line 116 of file binonly.cc.
Referenced by plugin_init().
Parameters map.
Definition at line 24 of file binonly.cc.
Referenced by load_sections(), Plugin::Open(), and plugin_init().