IDAPython 9.0
Loading...
Searching...
No Matches
ida_dbg.py File Reference

Classes

class  bpt_vec_t
 
class  tev_reg_values_t
 
class  tevinforeg_vec_t
 
class  memreg_infos_t
 
class  bptaddrs_t
 
class  bpt_location_t
 
class  bpt_t
 
class  tev_info_t
 
class  memreg_info_t
 
class  tev_reg_value_t
 
class  tev_info_reg_t
 
class  eval_ctx_t
 
class  DBG_Hooks
 

Namespaces

namespace  ida_dbg
 

Functions

bool run_to (*args)
 
bool request_run_to (*args)
 
bool run_requests ()
 
'ui_notification_t' get_running_request ()
 
bool is_request_running ()
 
'dbg_notification_t' get_running_notification ()
 
None clear_requests_queue ()
 
int get_process_state ()
 
bool is_valid_dstate (int state)
 
int set_process_state (int newstate, 'thid_t *' p_thid, int dbginv)
 
int invalidate_dbg_state (int dbginv)
 
int start_process (str path=None, str args=None, str sdir=None)
 
int request_start_process (str path=None, str args=None, str sdir=None)
 
bool suspend_process ()
 
bool request_suspend_process ()
 
bool continue_process ()
 
bool request_continue_process ()
 
bool continue_backwards ()
 
bool request_continue_backwards ()
 
bool exit_process ()
 
bool request_exit_process ()
 
'ssize_t' get_processes ('procinfo_vec_t' proclist)
 
int attach_process (*args)
 
int request_attach_process ('pid_t' pid, int event_id)
 
bool detach_process ()
 
bool request_detach_process ()
 
bool is_debugger_busy ()
 
int get_thread_qty ()
 
'thid_t' getn_thread (int n)
 
'thid_t' get_current_thread ()
 
str getn_thread_name (int n)
 
bool select_thread ('thid_t' tid)
 
bool request_select_thread ('thid_t' tid)
 
int suspend_thread ('thid_t' tid)
 
int request_suspend_thread ('thid_t' tid)
 
int resume_thread ('thid_t' tid)
 
int request_resume_thread ('thid_t' tid)
 
bool get_first_module ('modinfo_t' modinfo)
 
bool get_next_module ('modinfo_t' modinfo)
 
bool step_into ()
 
bool request_step_into ()
 
bool step_over ()
 
bool request_step_over ()
 
bool step_into_backwards ()
 
bool request_step_into_backwards ()
 
bool step_over_backwards ()
 
bool request_step_over_backwards ()
 
bool run_to_backwards (*args)
 
bool request_run_to_backwards (*args)
 
bool step_until_ret ()
 
bool request_step_until_ret ()
 
bool set_resume_mode ('thid_t' tid, 'resume_mode_t' mode)
 
bool request_set_resume_mode ('thid_t' tid, 'resume_mode_t' mode)
 
bool get_dbg_reg_info (str regname, 'register_info_t' ri)
 
'uint64 *' get_sp_val ()
 
'uint64 *' get_ip_val ()
 
bool is_reg_integer (str regname)
 
bool is_reg_float (str regname)
 
bool is_reg_custom (str regname)
 
int set_bptloc_string (str s)
 
str get_bptloc_string (int i)
 
int get_bpt_qty ()
 
bool getn_bpt (int n, 'bpt_t' bpt)
 
bool get_bpt (ida_idaapi.ea_t ea, 'bpt_t' bpt)
 
bool exist_bpt (ida_idaapi.ea_t ea)
 
bool add_bpt (*args)
 
bool request_add_bpt (*args)
 
bool del_bpt (*args)
 
bool request_del_bpt (*args)
 
bool update_bpt ('bpt_t' bpt)
 
bool find_bpt ('bpt_location_t' bptloc, 'bpt_t' bpt)
 
bool enable_bpt (*args)
 
bool disable_bpt (*args)
 
bool request_enable_bpt (*args)
 
bool request_disable_bpt (*args)
 
int check_bpt (ida_idaapi.ea_t ea)
 
bool set_trace_size (int size)
 
None clear_trace ()
 
None request_clear_trace ()
 
bool is_step_trace_enabled ()
 
bool enable_step_trace (int enable=1)
 
bool disable_step_trace ()
 
bool request_enable_step_trace (int enable=1)
 
bool request_disable_step_trace ()
 
int get_step_trace_options ()
 
None set_step_trace_options (int options)
 
None request_set_step_trace_options (int options)
 
bool is_insn_trace_enabled ()
 
bool enable_insn_trace (bool enable=True)
 
bool disable_insn_trace ()
 
bool request_enable_insn_trace (bool enable=True)
 
bool request_disable_insn_trace ()
 
int get_insn_trace_options ()
 
None set_insn_trace_options (int options)
 
None request_set_insn_trace_options (int options)
 
bool is_func_trace_enabled ()
 
bool enable_func_trace (bool enable=True)
 
bool disable_func_trace ()
 
bool request_enable_func_trace (bool enable=True)
 
bool request_disable_func_trace ()
 
int get_func_trace_options ()
 
None set_func_trace_options (int options)
 
None request_set_func_trace_options (int options)
 
bool enable_bblk_trace (bool enable=True)
 
bool disable_bblk_trace ()
 
bool request_enable_bblk_trace (bool enable=True)
 
bool request_disable_bblk_trace ()
 
bool is_bblk_trace_enabled ()
 
int get_bblk_trace_options ()
 
None set_bblk_trace_options (int options)
 
None request_set_bblk_trace_options (int options)
 
int get_tev_qty ()
 
bool get_tev_info (int n, 'tev_info_t' tev_info)
 
bool get_insn_tev_reg_val (int n, str regname, 'regval_t' regval)
 
bool get_insn_tev_reg_mem (int n, 'memreg_infos_t' memmap)
 
bool get_insn_tev_reg_result (int n, str regname, 'regval_t' regval)
 
ida_idaapi.ea_t get_call_tev_callee (int n)
 
ida_idaapi.ea_t get_ret_tev_return (int n)
 
ida_idaapi.ea_t get_bpt_tev_ea (int n)
 
bool get_tev_memory_info (int n, 'meminfo_vec_t' mi)
 
bool get_tev_event (int n, 'debug_event_t' d)
 
ida_idaapi.ea_t get_trace_base_address ()
 
None set_trace_base_address (ida_idaapi.ea_t ea)
 
None dbg_add_thread ('thid_t' tid)
 
None dbg_del_thread ('thid_t' tid)
 
None dbg_add_tev ('tev_type_t' type, 'thid_t' tid, ida_idaapi.ea_t address)
 
bool dbg_add_many_tevs ('tevinforeg_vec_t' new_tevs)
 
bool dbg_add_insn_tev ('thid_t' tid, ida_idaapi.ea_t ea, 'save_reg_values_t' save=SAVE_DIFF)
 
bool dbg_add_bpt_tev ('thid_t' tid, ida_idaapi.ea_t ea, ida_idaapi.ea_t bp)
 
None dbg_add_call_tev ('thid_t' tid, ida_idaapi.ea_t caller, ida_idaapi.ea_t callee)
 
None dbg_add_ret_tev ('thid_t' tid, ida_idaapi.ea_t ret_insn, ida_idaapi.ea_t return_to)
 
None dbg_add_debug_event ('debug_event_t' event)
 
str load_trace_file (str filename)
 
bool save_trace_file (str filename, str description)
 
bool is_valid_trace_file (str filename)
 
bool set_trace_file_desc (str filename, str description)
 
str get_trace_file_desc (str filename)
 
str choose_trace_file ()
 
bool diff_trace_file (str NONNULL_filename)
 
bool graph_trace ()
 
None set_highlight_trace_options (bool hilight, 'bgcolor_t' color, 'bgcolor_t' diff)
 
None set_trace_platform (str platform)
 
str get_trace_platform ()
 
None set_trace_dynamic_register_set ('dynamic_register_set_t &' idaregs)
 
None get_trace_dynamic_register_set ('dynamic_register_set_t *' idaregs)
 
'dbg_event_code_t' wait_for_next_event (int wfne, int timeout)
 
'debug_event_t const *' get_debug_event ()
 
'uint' set_debugger_options ('uint' options)
 
None set_remote_debugger (str host, str _pass, int port=-1)
 
'qstring *, qstring *, launch_env_t *, qstring *, qstring *, qstring *, int *' get_process_options2 ()
 
'excvec_t *' retrieve_exceptions ()
 
bool store_exceptions ()
 
str define_exception ('uint' code, str name, str desc, int flags)
 
'source_view_t *' create_source_viewer ('TWidget **' out_ccv, 'TWidget *' parent, 'TWidget *' custview, 'source_file_ptr' sf, 'strvec_t *' lines, int lnnum, int colnum, int flags)
 
'uint32 *' get_dbg_byte (ida_idaapi.ea_t ea)
 
bool put_dbg_byte (ida_idaapi.ea_t ea, int x)
 
None invalidate_dbgmem_config ()
 
None invalidate_dbgmem_contents (ida_idaapi.ea_t ea, 'asize_t' size)
 
bool is_debugger_on ()
 
bool is_debugger_memory (ida_idaapi.ea_t ea)
 
ida_idaapi.ea_t get_tev_ea (int n)
 
int get_tev_type (int n)
 
int get_tev_tid (int n)
 
None bring_debugger_to_front ()
 
None set_manual_regions ('meminfo_vec_t' ranges)
 
None edit_manual_regions ()
 
None enable_manual_regions (bool enable)
 
int handle_debug_event ('debug_event_t' ev, int rqflags)
 
bool add_virt_module ('modinfo_t' mod)
 
bool del_virt_module ('ea_t const ' base)
 
int internal_ioctl (int fn, 'void const *' buf, 'void **' poutbuf, 'ssize_t *' poutsize)
 
int get_dbg_memory_info ('meminfo_vec_t' ranges)
 
bool set_bpt_group ('bpt_t' bpt, str grp_name)
 
bool set_bptloc_group ('bpt_location_t' bptloc, str grp_name)
 
str get_bpt_group ('bpt_location_t' bptloc)
 
bool rename_bptgrp (str old_name, str new_name)
 
bool del_bptgrp (str name)
 
'ssize_t' get_grp_bpts ('bpt_vec_t' bpts, str grp_name)
 
int enable_bptgrp (str bptgrp_name, bool enable=True)
 
bool get_local_vars ('srcinfo_provider_t *' prov, ida_idaapi.ea_t ea, 'source_items_t *' out)
 
bool srcdbg_request_step_into ()
 
bool srcdbg_request_step_over ()
 
bool srcdbg_request_step_until_ret ()
 
int hide_all_bpts ()
 
'ssize_t' read_dbg_memory (ida_idaapi.ea_t ea, 'void *' buffer, 'size_t' size)
 
bool get_module_info (ida_idaapi.ea_t ea, 'modinfo_t' modinfo)
 
str dbg_bin_search (ida_idaapi.ea_t start_ea, ida_idaapi.ea_t end_ea, 'compiled_binpat_vec_t const &' data, int srch_flags)
 
bool load_debugger (str dbgname, bool use_remote)
 
bool collect_stack_trace ('thid_t' tid, 'call_stack_t' trace)
 
bool get_global_var ('srcinfo_provider_t *' prov, ida_idaapi.ea_t ea, str name, 'source_item_ptr *' out)
 
bool get_local_var ('srcinfo_provider_t *' prov, ida_idaapi.ea_t ea, str name, 'source_item_ptr *' out)
 
'srcinfo_provider_t *' get_srcinfo_provider (str name)
 
str get_current_source_file ()
 
int get_current_source_line ()
 
None add_path_mapping (str src, str dst)
 
bool srcdbg_step_into ()
 
bool srcdbg_step_over ()
 
bool srcdbg_step_until_ret ()
 
None set_debugger_event_cond (str NONNULL_evcond)
 
str get_debugger_event_cond ()
 
None set_process_options (*args)
 
'qstring *, qstring *, qstring *, qstring *, qstring *, int *' get_process_options ()
 
 get_manual_regions (*args)
 
 dbg_is_loaded ()
 
 refresh_debugger_memory ()
 
List[str] list_bptgrps ()
 
 internal_get_sreg_base (int tid, int sreg_value)
 
'ssize_t' write_dbg_memory (*args)
 
 dbg_can_query ()
 
bool set_reg_val (*args)
 
'PyObject *' request_set_reg_val (str regname, 'PyObject *' o)
 
 get_reg_val (*args)
 
'ida_idd.regvals_tget_reg_vals (int tid, int clsmask=-1)
 
 get_tev_reg_val (tev, reg)
 
 get_tev_reg_mem_qty (tev)
 
 get_tev_reg_mem (tev, idx)
 
 get_tev_reg_mem_ea (tev, idx)
 
 send_dbg_command (command)
 

Variables

 dbg_null = _ida_dbg.dbg_null
 
 dbg_process_start = _ida_dbg.dbg_process_start
 
 dbg_process_exit = _ida_dbg.dbg_process_exit
 
 dbg_process_attach = _ida_dbg.dbg_process_attach
 
 dbg_process_detach = _ida_dbg.dbg_process_detach
 
 dbg_thread_start = _ida_dbg.dbg_thread_start
 
 dbg_thread_exit = _ida_dbg.dbg_thread_exit
 
 dbg_library_load = _ida_dbg.dbg_library_load
 
 dbg_library_unload = _ida_dbg.dbg_library_unload
 
 dbg_information = _ida_dbg.dbg_information
 
 dbg_exception = _ida_dbg.dbg_exception
 
 dbg_suspend_process = _ida_dbg.dbg_suspend_process
 
 dbg_bpt = _ida_dbg.dbg_bpt
 
 dbg_trace = _ida_dbg.dbg_trace
 
 dbg_request_error = _ida_dbg.dbg_request_error
 
 dbg_step_into = _ida_dbg.dbg_step_into
 
 dbg_step_over = _ida_dbg.dbg_step_over
 
 dbg_run_to = _ida_dbg.dbg_run_to
 
 dbg_step_until_ret = _ida_dbg.dbg_step_until_ret
 
 dbg_bpt_changed = _ida_dbg.dbg_bpt_changed
 
 dbg_started_loading_bpts = _ida_dbg.dbg_started_loading_bpts
 
 dbg_finished_loading_bpts = _ida_dbg.dbg_finished_loading_bpts
 
 dbg_last = _ida_dbg.dbg_last
 
 BPTEV_ADDED = _ida_dbg.BPTEV_ADDED
 
 BPTEV_REMOVED = _ida_dbg.BPTEV_REMOVED
 
 BPTEV_CHANGED = _ida_dbg.BPTEV_CHANGED
 
 DSTATE_SUSP = _ida_dbg.DSTATE_SUSP
 
 DSTATE_NOTASK = _ida_dbg.DSTATE_NOTASK
 
 DSTATE_RUN = _ida_dbg.DSTATE_RUN
 
 DBGINV_MEMORY = _ida_dbg.DBGINV_MEMORY
 
 DBGINV_MEMCFG = _ida_dbg.DBGINV_MEMCFG
 
 DBGINV_REGS = _ida_dbg.DBGINV_REGS
 
 DBGINV_ALL = _ida_dbg.DBGINV_ALL
 
 DBGINV_REDRAW = _ida_dbg.DBGINV_REDRAW
 
 DBGINV_NONE = _ida_dbg.DBGINV_NONE
 
 MOVBPT_OK = _ida_dbg.MOVBPT_OK
 
 MOVBPT_NOT_FOUND = _ida_dbg.MOVBPT_NOT_FOUND
 
 MOVBPT_DEST_BUSY = _ida_dbg.MOVBPT_DEST_BUSY
 
 MOVBPT_BAD_TYPE = _ida_dbg.MOVBPT_BAD_TYPE
 
 BPLT_ABS = _ida_dbg.BPLT_ABS
 
 BPLT_REL = _ida_dbg.BPLT_REL
 
 BPLT_SYM = _ida_dbg.BPLT_SYM
 
 BPLT_SRC = _ida_dbg.BPLT_SRC
 
 BPT_BRK = _ida_dbg.BPT_BRK
 
 BPT_TRACE = _ida_dbg.BPT_TRACE
 
 BPT_UPDMEM = _ida_dbg.BPT_UPDMEM
 
 BPT_ENABLED = _ida_dbg.BPT_ENABLED
 
 BPT_LOWCND = _ida_dbg.BPT_LOWCND
 
 BPT_TRACEON = _ida_dbg.BPT_TRACEON
 
 BPT_TRACE_INSN = _ida_dbg.BPT_TRACE_INSN
 
 BPT_TRACE_FUNC = _ida_dbg.BPT_TRACE_FUNC
 
 BPT_TRACE_BBLK = _ida_dbg.BPT_TRACE_BBLK
 
 BPT_TRACE_TYPES = _ida_dbg.BPT_TRACE_TYPES
 
 BPT_ELANG_MASK = _ida_dbg.BPT_ELANG_MASK
 
 BPT_ELANG_SHIFT = _ida_dbg.BPT_ELANG_SHIFT
 
 BKPT_BADBPT = _ida_dbg.BKPT_BADBPT
 
 BKPT_LISTBPT = _ida_dbg.BKPT_LISTBPT
 
 BKPT_TRACE = _ida_dbg.BKPT_TRACE
 
 BKPT_ACTIVE = _ida_dbg.BKPT_ACTIVE
 
 BKPT_PARTIAL = _ida_dbg.BKPT_PARTIAL
 
 BKPT_CNDREADY = _ida_dbg.BKPT_CNDREADY
 
 BKPT_FAKEPEND = _ida_dbg.BKPT_FAKEPEND
 
 BKPT_PAGE = _ida_dbg.BKPT_PAGE
 
 BPTCK_NONE = _ida_dbg.BPTCK_NONE
 
 BPTCK_NO = _ida_dbg.BPTCK_NO
 
 BPTCK_YES = _ida_dbg.BPTCK_YES
 
 BPTCK_ACT = _ida_dbg.BPTCK_ACT
 
 ST_OVER_DEBUG_SEG = _ida_dbg.ST_OVER_DEBUG_SEG
 
 ST_OVER_LIB_FUNC = _ida_dbg.ST_OVER_LIB_FUNC
 
 ST_ALREADY_LOGGED = _ida_dbg.ST_ALREADY_LOGGED
 
 ST_SKIP_LOOPS = _ida_dbg.ST_SKIP_LOOPS
 
 ST_DIFFERENTIAL = _ida_dbg.ST_DIFFERENTIAL
 
 ST_OPTIONS_MASK = _ida_dbg.ST_OPTIONS_MASK
 
 ST_OPTIONS_DEFAULT = _ida_dbg.ST_OPTIONS_DEFAULT
 
 IT_LOG_SAME_IP = _ida_dbg.IT_LOG_SAME_IP
 
 FT_LOG_RET = _ida_dbg.FT_LOG_RET
 
 BT_LOG_INSTS = _ida_dbg.BT_LOG_INSTS
 
 tev_none = _ida_dbg.tev_none
 
 tev_insn = _ida_dbg.tev_insn
 
 tev_call = _ida_dbg.tev_call
 
 tev_ret = _ida_dbg.tev_ret
 
 tev_bpt = _ida_dbg.tev_bpt
 
 tev_mem = _ida_dbg.tev_mem
 
 tev_event = _ida_dbg.tev_event
 
 tev_max = _ida_dbg.tev_max
 
 SAVE_ALL_VALUES = _ida_dbg.SAVE_ALL_VALUES
 
 SAVE_DIFF = _ida_dbg.SAVE_DIFF
 
 SAVE_NONE = _ida_dbg.SAVE_NONE
 
 DEC_NOTASK = _ida_dbg.DEC_NOTASK
 
 DEC_ERROR = _ida_dbg.DEC_ERROR
 
 DEC_TIMEOUT = _ida_dbg.DEC_TIMEOUT
 
 WFNE_ANY = _ida_dbg.WFNE_ANY
 
 WFNE_SUSP = _ida_dbg.WFNE_SUSP
 
 WFNE_SILENT = _ida_dbg.WFNE_SILENT
 
 WFNE_CONT = _ida_dbg.WFNE_CONT
 
 WFNE_NOWAIT = _ida_dbg.WFNE_NOWAIT
 
 WFNE_USEC = _ida_dbg.WFNE_USEC
 
 DOPT_SEGM_MSGS = _ida_dbg.DOPT_SEGM_MSGS
 
 DOPT_START_BPT = _ida_dbg.DOPT_START_BPT
 
 DOPT_THREAD_MSGS = _ida_dbg.DOPT_THREAD_MSGS
 
 DOPT_THREAD_BPT = _ida_dbg.DOPT_THREAD_BPT
 
 DOPT_BPT_MSGS = _ida_dbg.DOPT_BPT_MSGS
 
 DOPT_LIB_MSGS = _ida_dbg.DOPT_LIB_MSGS
 
 DOPT_LIB_BPT = _ida_dbg.DOPT_LIB_BPT
 
 DOPT_INFO_MSGS = _ida_dbg.DOPT_INFO_MSGS
 
 DOPT_INFO_BPT = _ida_dbg.DOPT_INFO_BPT
 
 DOPT_REAL_MEMORY = _ida_dbg.DOPT_REAL_MEMORY
 
 DOPT_REDO_STACK = _ida_dbg.DOPT_REDO_STACK
 
 DOPT_ENTRY_BPT = _ida_dbg.DOPT_ENTRY_BPT
 
 DOPT_EXCDLG = _ida_dbg.DOPT_EXCDLG
 
 EXCDLG_NEVER = _ida_dbg.EXCDLG_NEVER
 
 EXCDLG_UNKNOWN = _ida_dbg.EXCDLG_UNKNOWN
 
 EXCDLG_ALWAYS = _ida_dbg.EXCDLG_ALWAYS
 
 DOPT_LOAD_DINFO = _ida_dbg.DOPT_LOAD_DINFO
 
 DOPT_END_BPT = _ida_dbg.DOPT_END_BPT
 
 DOPT_TEMP_HWBPT = _ida_dbg.DOPT_TEMP_HWBPT
 
 DOPT_FAST_STEP = _ida_dbg.DOPT_FAST_STEP
 
 DOPT_DISABLE_ASLR = _ida_dbg.DOPT_DISABLE_ASLR
 
 SRCIT_NONE = _ida_dbg.SRCIT_NONE
 
 SRCIT_MODULE = _ida_dbg.SRCIT_MODULE
 
 SRCIT_FUNC = _ida_dbg.SRCIT_FUNC
 
 SRCIT_STMT = _ida_dbg.SRCIT_STMT
 
 SRCIT_EXPR = _ida_dbg.SRCIT_EXPR
 
 SRCIT_STTVAR = _ida_dbg.SRCIT_STTVAR
 
 SRCIT_LOCVAR = _ida_dbg.SRCIT_LOCVAR
 
 SRCDBG_PROV_VERSION = _ida_dbg.SRCDBG_PROV_VERSION
 
bool move_bpt_to_grp = set_bpt_group