UnivesalDisassembler(2003)

binonly.cc File Reference

#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

ParametersParams
 Parameters map.
const char * _syntax

Define Documentation

#define pluginname   "binonly.so"

Definition at line 22 of file binonly.cc.

Referenced by is_file_defined(), and load_sections().


Function Documentation

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.

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().


Variable Documentation

const char * _syntax
Initial value:
"\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().