C# Class Mono.Debugger.Backend.Bfd

Inheritance: NativeExecutableReader, ISymbolContainer
显示文件 Open project: baulig/debugger Class Usage Examples

Protected Properties

Property Type Description
info Mono.Debugger.TargetMemoryInfo
module Mono.Debugger.Module
os OperatingSystemBackend
symfile BfdSymbolFile

Private Properties

Property Type Description
Bfd System
FindSection Section
GetSectionByName Section
GetSectionContents byte[]
GetTrampoline bool
ReadDynamicInfo Mono.Debugger.TargetAddress
bfd_close bool
bfd_get_section_by_name System.IntPtr
bfd_glue_check_format_archive bool
bfd_glue_check_format_core bool
bfd_glue_check_format_object bool
bfd_glue_core_file_failing_command string
bfd_glue_elfi386_locate_base long
bfd_glue_get_dynamic_symbols int
bfd_glue_get_errormsg string
bfd_glue_get_first_section System.IntPtr
bfd_glue_get_next_section System.IntPtr
bfd_glue_get_section_contents bool
bfd_glue_get_section_flags SectionFlags
bfd_glue_get_section_name string
bfd_glue_get_section_size int
bfd_glue_get_section_vma long
bfd_glue_get_start_address long
bfd_glue_get_symbol string
bfd_glue_get_symbols int
bfd_glue_get_target_name string
bfd_glue_init_disassembler System.IntPtr
bfd_glue_openr System.IntPtr
bfd_glue_openr_next_archived_file System.IntPtr
bfd_init void
disassembler System.IntPtr
g_free void
this Section

Public Methods

Method Description
Bfd ( OperatingSystemBackend os, TargetMemoryInfo info, string filename, TargetAddress base_address, bool is_loaded ) : System
GetAddress ( long address ) : TargetAddress
GetMemoryMaps ( ) : Mono.Debugger.TargetMemoryArea[]
GetReader ( TargetAddress address ) : TargetReader
GetReader ( TargetAddress address, bool may_fail ) : TargetReader
GetSectionAddress ( string name ) : TargetAddress
GetSectionContents ( string name ) : byte[]
GetSectionReader ( string name ) : TargetReader
HasSection ( string name ) : bool
LookupLocalSymbol ( string name ) : TargetAddress
LookupSymbol ( string name ) : TargetAddress
OpenCoreFile ( string core_file ) : Bfd
ReadTypes ( ) : void

Protected Methods

Method Description
DoDispose ( ) : void
FindMethod ( string name ) : MethodSource
GetMethods ( SourceFile file ) : MethodSource[]
GetSimpleSymbols ( ) : ArrayList
OnModuleChanged ( ) : void
SimpleLookup ( TargetAddress address, bool exact_match ) : Symbol
UnwindStack ( StackFrame frame, TargetMemoryAccess memory ) : StackFrame
create_frame_reader ( ) : void
load_dwarf ( ) : void
load_frames ( ) : void
read_bfd_symbols ( ) : void
read_sections ( ) : void
unload_dwarf ( ) : void

Private Methods

Method Description
Bfd ( ) : System
FindSection ( long address ) : Section
GetSectionByName ( string name, bool throw_exc ) : Section
GetSectionContents ( IntPtr section ) : byte[]
GetTrampoline ( TargetMemoryAccess memory, TargetAddress address, TargetAddress &trampoline, bool &is_start ) : bool
ReadDynamicInfo ( Inferior inferior ) : TargetAddress
bfd_close ( IntPtr bfd ) : bool
bfd_get_section_by_name ( IntPtr bfd, string name ) : IntPtr
bfd_glue_check_format_archive ( IntPtr bfd ) : bool
bfd_glue_check_format_core ( IntPtr bfd ) : bool
bfd_glue_check_format_object ( IntPtr bfd ) : bool
bfd_glue_core_file_failing_command ( IntPtr bfd ) : string
bfd_glue_elfi386_locate_base ( IntPtr bfd, IntPtr data, int size ) : long
bfd_glue_get_dynamic_symbols ( IntPtr bfd, IntPtr &symtab ) : int
bfd_glue_get_errormsg ( ) : string
bfd_glue_get_first_section ( IntPtr bfd ) : IntPtr
bfd_glue_get_next_section ( IntPtr section ) : IntPtr
bfd_glue_get_section_contents ( IntPtr bfd, IntPtr section, IntPtr data, int size ) : bool
bfd_glue_get_section_flags ( IntPtr section ) : SectionFlags
bfd_glue_get_section_name ( IntPtr section ) : string
bfd_glue_get_section_size ( IntPtr section ) : int
bfd_glue_get_section_vma ( IntPtr section ) : long
bfd_glue_get_start_address ( IntPtr bfd ) : long
bfd_glue_get_symbol ( IntPtr bfd, IntPtr symtab, int index, int &is_function, long &address ) : string
bfd_glue_get_symbols ( IntPtr bfd, IntPtr &symtab ) : int
bfd_glue_get_target_name ( IntPtr bfd ) : string
bfd_glue_init_disassembler ( IntPtr bfd ) : IntPtr
bfd_glue_openr ( string filename, string target ) : IntPtr
bfd_glue_openr_next_archived_file ( IntPtr archive, IntPtr last ) : IntPtr
bfd_init ( ) : void
disassembler ( IntPtr bfd ) : IntPtr
g_free ( IntPtr data ) : void
this ( long address ) : Section

Method Details

Bfd() public method

public Bfd ( OperatingSystemBackend os, TargetMemoryInfo info, string filename, TargetAddress base_address, bool is_loaded ) : System
os OperatingSystemBackend
info Mono.Debugger.TargetMemoryInfo
filename string
base_address Mono.Debugger.TargetAddress
is_loaded bool
return System

DoDispose() protected method

protected DoDispose ( ) : void
return void

FindMethod() protected method

protected FindMethod ( string name ) : MethodSource
name string
return MethodSource

GetAddress() public method

public GetAddress ( long address ) : TargetAddress
address long
return Mono.Debugger.TargetAddress

GetMemoryMaps() public method

public GetMemoryMaps ( ) : Mono.Debugger.TargetMemoryArea[]
return Mono.Debugger.TargetMemoryArea[]

GetMethods() protected method

protected GetMethods ( SourceFile file ) : MethodSource[]
file Mono.Debugger.SourceFile
return MethodSource[]

GetReader() public method

public GetReader ( TargetAddress address ) : TargetReader
address Mono.Debugger.TargetAddress
return TargetReader

GetReader() public method

public GetReader ( TargetAddress address, bool may_fail ) : TargetReader
address Mono.Debugger.TargetAddress
may_fail bool
return TargetReader

GetSectionAddress() public method

public GetSectionAddress ( string name ) : TargetAddress
name string
return Mono.Debugger.TargetAddress

GetSectionContents() public method

public GetSectionContents ( string name ) : byte[]
name string
return byte[]

GetSectionReader() public method

public GetSectionReader ( string name ) : TargetReader
name string
return TargetReader

GetSimpleSymbols() protected method

protected GetSimpleSymbols ( ) : ArrayList
return System.Collections.ArrayList

HasSection() public method

public HasSection ( string name ) : bool
name string
return bool

LookupLocalSymbol() public method

public LookupLocalSymbol ( string name ) : TargetAddress
name string
return Mono.Debugger.TargetAddress

LookupSymbol() public method

public LookupSymbol ( string name ) : TargetAddress
name string
return Mono.Debugger.TargetAddress

OnModuleChanged() protected method

protected OnModuleChanged ( ) : void
return void

OpenCoreFile() public method

public OpenCoreFile ( string core_file ) : Bfd
core_file string
return Bfd

ReadTypes() public method

public ReadTypes ( ) : void
return void

SimpleLookup() protected method

protected SimpleLookup ( TargetAddress address, bool exact_match ) : Symbol
address Mono.Debugger.TargetAddress
exact_match bool
return Mono.Debugger.Symbol

UnwindStack() protected method

protected UnwindStack ( StackFrame frame, TargetMemoryAccess memory ) : StackFrame
frame Mono.Debugger.StackFrame
memory Mono.Debugger.TargetMemoryAccess
return Mono.Debugger.StackFrame

create_frame_reader() protected method

protected create_frame_reader ( ) : void
return void

load_dwarf() protected method

protected load_dwarf ( ) : void
return void

load_frames() protected method

protected load_frames ( ) : void
return void

read_bfd_symbols() protected method

protected read_bfd_symbols ( ) : void
return void

read_sections() protected method

protected read_sections ( ) : void
return void

unload_dwarf() protected method

protected unload_dwarf ( ) : void
return void

Property Details

info protected_oe property

protected TargetMemoryInfo,Mono.Debugger info
return Mono.Debugger.TargetMemoryInfo

module protected_oe property

protected Module,Mono.Debugger module
return Mono.Debugger.Module

os protected_oe property

protected OperatingSystemBackend,Mono.Debugger.Backend os
return OperatingSystemBackend

symfile protected_oe property

protected BfdSymbolFile symfile
return BfdSymbolFile