mirror of
https://github.com/cemu-project/idapython.git
synced 2025-02-17 10:26:23 +01:00
idd.i: added dbg_get_name() to get the current debugger's name
This commit is contained in:
parent
ff7ab3f1dc
commit
69e35391a5
@ -15,7 +15,7 @@ typedef struct
|
||||
|
||||
%{
|
||||
//<code(py_dbg)>
|
||||
PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas);
|
||||
static PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas);
|
||||
//</code(py_dbg)>
|
||||
%}
|
||||
|
||||
@ -23,7 +23,7 @@ PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas);
|
||||
|
||||
//<inline(py_dbg)>
|
||||
//-------------------------------------------------------------------------
|
||||
PyObject *py_get_manual_regions()
|
||||
static PyObject *py_get_manual_regions()
|
||||
{
|
||||
meminfo_vec_t areas;
|
||||
get_manual_regions(&areas);
|
||||
@ -31,7 +31,7 @@ PyObject *py_get_manual_regions()
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
PyObject *refresh_debugger_memory()
|
||||
static PyObject *refresh_debugger_memory()
|
||||
{
|
||||
invalidate_dbgmem_config();
|
||||
invalidate_dbgmem_contents(BADADDR, BADADDR);
|
||||
|
13
swig/idd.i
13
swig/idd.i
@ -12,7 +12,7 @@
|
||||
//<code(py_idd)>
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
bool dbg_can_query()
|
||||
static bool dbg_can_query()
|
||||
{
|
||||
// Reject the request only if no debugger is set
|
||||
// or the debugger cannot be queried while not in suspended state
|
||||
@ -20,7 +20,7 @@ bool dbg_can_query()
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas)
|
||||
static PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas)
|
||||
{
|
||||
PyObject *py_list = PyList_New(areas.size());
|
||||
meminfo_vec_t::const_iterator it, it_end(areas.end());
|
||||
@ -300,7 +300,14 @@ PyObject *dbg_read_memory(PyObject *py_ea, PyObject *py_sz);
|
||||
PyObject *dbg_get_thread_sreg_base(PyObject *py_tid, PyObject *py_sreg_value);
|
||||
PyObject *dbg_get_registers();
|
||||
PyObject *dbg_get_memory_info();
|
||||
bool dbg_can_query();
|
||||
static PyObject *dbg_get_name()
|
||||
{
|
||||
if ( dbg == NULL )
|
||||
Py_RETURN_NONE;
|
||||
return PyString_FromString(dbg->name);
|
||||
}
|
||||
|
||||
static bool dbg_can_query();
|
||||
PyObject *py_appcall(
|
||||
ea_t func_ea,
|
||||
thid_t tid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user