mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Add print_alive_tasks() debug binding
Expose g_task_print_alive_tasks() as _frida.print_alive_tasks(), wrapped as frida.print_alive_tasks() in both facades. Requires a GLib built with G_ENABLE_DEBUG.
This commit is contained in:
1 parent
2a3a04b9be
commit
b7e22441ef
4 files changed
+27
No files matched your search
@@ -77,3 +77,8 @@ def make_auth_callback(callback: Callable[[str], Any]) -> Callable[[Any], str]:
|
||||
return json.dumps(session_info)
|
||||
|
||||
return authenticate
|
||||
|
||||
|
||||
# TEMPORARY DEBUG HACK
|
||||
def print_alive_tasks() -> None:
|
||||
_frida.print_alive_tasks()
|
||||
@@ -78,3 +78,8 @@ def make_auth_callback(callback: Callable[[str], Any]) -> Callable[[Any], str]:
|
||||
return json.dumps(session_info)
|
||||
|
||||
return authenticate
|
||||
|
||||
|
||||
# TEMPORARY DEBUG HACK
|
||||
def print_alive_tasks() -> None:
|
||||
_frida.print_alive_tasks()
|
||||
@@ -0,0 +1,11 @@
|
||||
/* TEMPORARY DEBUG HACK: needs a GLib built with G_ENABLE_DEBUG. */
|
||||
extern void g_task_print_alive_tasks (void);
|
||||
|
||||
static PyObject *
|
||||
PyFrida_print_alive_tasks (PyObject * module,
|
||||
PyObject * args)
|
||||
{
|
||||
g_task_print_alive_tasks ();
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
@@ -34,6 +34,12 @@ def load_customizations() -> Customizations:
|
||||
c_symbol="PyFrida_get_device_manager",
|
||||
asset="module_get_device_manager.c",
|
||||
),
|
||||
# TEMPORARY DEBUG HACK
|
||||
ModuleFunction(
|
||||
py_name="print_alive_tasks",
|
||||
c_symbol="PyFrida_print_alive_tasks",
|
||||
asset="module_print_alive_tasks.c",
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user