Disassembler of machine codes
[Portability layer]


Classes

struct  port_disasm_info_t

Typedefs

typedef port_disassembler_t port_disassembler_t

Functions

apr_status_t port_disasm_initialize ()
 Initializes the disasm module.
apr_status_t port_disassembler_create (port_disassembler_t **disassembler, apr_pool_t *pool)
 Creates the disassembler.
apr_status_t port_disasm_set_info (port_disassembler_t *disassembler, const port_disasm_info_t new_info, port_disasm_info_t *old_info)
 
Parameters:
new_info - the info to set up

apr_status_t port_disasm (port_disassembler_t *disassembler, const char *code, unsigned int len, char **disasm_code)
 Translates from machine native to human readable code.
apr_status_t port_disasm_to_file (port_disassembler_t *disassembler, const char *code, unsigned int len, apr_file_t *thefile)
 Translates from machine native to human readable code.


Typedef Documentation

typedef struct port_disassembler_t port_disassembler_t


Function Documentation

apr_status_t port_disasm_initialize (  ) 

Initializes the disasm module.

Remarks:
It's safe to call the function several times.

apr_status_t port_disassembler_create ( port_disassembler_t **  disassembler,
apr_pool_t *  pool 
)

Creates the disassembler.

Parameters:
disassembler - the created disassembler
pool - the pool to use
Remarks:
It's safe to call this function by multiple threads with different pools.

apr_status_t port_disasm_set_info ( port_disassembler_t disassembler,
const port_disasm_info_t  new_info,
port_disasm_info_t old_info 
)

Parameters:
new_info - the info to set up

Parameters:
old_info - the pointer to the memory to store old info in; NULL should be specified if no interest for the old info
Warning:
Not thread safe. Only one thread can change the info for the specified disassembler.

apr_status_t port_disasm ( port_disassembler_t disassembler,
const char *  code,
unsigned int  len,
char **  disasm_code 
)

Translates from machine native to human readable code.

Parameters:
disassembler - the disassembler
code - the assembler code to translate
len - the number of bytes to be translated
disasm_code - the pointer to the pointer to the disassembled code on exit; is valid when the disassembler is valid
Warning:
Not thread safe. Only one thread can use the specified disassembler.

apr_status_t port_disasm_to_file ( port_disassembler_t disassembler,
const char *  code,
unsigned int  len,
apr_file_t *  thefile 
)

Translates from machine native to human readable code.

Parameters:
code - the assembler code to translate
len - the number of bytes to be translated
thefile - the destination file
Warning:
Not thread safe. Only one thread can use the specified disassembler


Genereated on Tue Mar 11 19:25:24 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.