BFD Support

API for use with the GNU BFD library. More...

Functions

opdis_t LIBCALL opdis_init_from_bfd (bfd *abfd)
 Initialize an opdis disassembler based on a BFD object.
int LIBCALL opdis_disasm_bfd_linear (opdis_t o, bfd *abfd, opdis_vma_t vma, opdis_off_t length)
 Disassemble a sequence of instructions in a BFD.
int LIBCALL opdis_disasm_bfd_cflow (opdis_t o, bfd *abfd, opdis_vma_t vma)
 Disassemble a contents of a BFD following flow of control.
int LIBCALL opdis_disasm_bfd_section (opdis_t o, asection *sec)
 Disassemble a the contents of a BFD section using linear disassembly.
int LIBCALL opdis_disasm_bfd_symbol (opdis_t o, asymbol *sym)
 Disassemble a BFD following flow of control from a symbol.
int LIBCALL opdis_disasm_bfd_entry (opdis_t o, bfd *abfd)
 Disassemble a BFD following flow of control from entry point (_start).

Detailed Description

API for use with the GNU BFD library.


Function Documentation

opdis_disasm_bfd_cflow ( opdis_t  o,
bfd *  abfd,
opdis_vma_t  vma 
)

Disassemble a contents of a BFD following flow of control.

Parameters:
o opdis disassembler
abfd The BFD to disassemble
vma The address (VMA) of the entry point in the BFD
opdis_disasm_bfd_entry ( opdis_t  o,
bfd *  abfd 
)

Disassemble a BFD following flow of control from entry point (_start).

Parameters:
o opdis disassembler
abfd The BFD to disassemble
opdis_disasm_bfd_linear ( opdis_t  o,
bfd *  abfd,
opdis_vma_t  vma,
opdis_off_t  length 
)

Disassemble a sequence of instructions in a BFD.

Parameters:
o opdis disassembler
abfd The BFD to disassemble
vma The address (VMA) in the BFD to start disassembly at.
length The number of bytes to disassemble.
Note:
If length is zero, then all bytes from offset to the end of the BFD will be disassembled.
opdis_disasm_bfd_section ( opdis_t  o,
asection *  sec 
)

Disassemble a the contents of a BFD section using linear disassembly.

Parameters:
o opdis disassembler
sec The section to disassemble
opdis_disasm_bfd_symbol ( opdis_t  o,
asymbol *  sym 
)

Disassemble a BFD following flow of control from a symbol.

Parameters:
o opdis disassembler
sym The BFD symbol to start disassembly at.
opdis_init_from_bfd ( bfd *  abfd  ) 

Initialize an opdis disassembler based on a BFD object.

Allocates an opdis_t using opdis_init(), then configures libopcodes based on information (e.g. the architecture) in the BFD.

Parameters:
target A BFD object to operate on
See also:
opdis_init_from_bfd
Returns:
An opdis disassembler object
Note:
This requires that the BFD be configured correctly for the target architecture. See the documentation for libbfd in the GNU binutils distribution.

Generated on Wed Mar 10 14:30:46 2010 for Opdis Disassembly Library by  doxygen 1.6.1