mirror of
https://github.com/frida/frida-python.git
synced 2026-11-12 12:50:29 -10:00
Compare commits
1
Commits
17.26.1
...
debug/tasks
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7e22441ef |
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 json.dumps(session_info)
|
||||||
|
|
||||||
return authenticate
|
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 json.dumps(session_info)
|
||||||
|
|
||||||
return authenticate
|
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",
|
c_symbol="PyFrida_get_device_manager",
|
||||||
asset="module_get_device_manager.c",
|
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