2009-04-01 22:44:43 +00:00
|
|
|
/* radare - LGPL - Copyright 2009 pancake<nopcode.org> */
|
|
|
|
|
|
|
|
#include <r_debug.h>
|
|
|
|
|
|
|
|
R_API int r_debug_pid_list(struct r_debug_t *dbg)
|
|
|
|
{
|
2009-04-15 10:01:12 +00:00
|
|
|
//int count = 0;
|
2009-04-01 22:44:43 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* processes */
|
2010-02-21 19:24:28 +00:00
|
|
|
R_API int r_debug_pid_parent(RDebugPid *pid)
|
2009-04-01 22:44:43 +00:00
|
|
|
{
|
2009-09-10 20:51:34 +00:00
|
|
|
// fork in child
|
|
|
|
return 0;
|
2009-04-01 22:44:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
R_API int r_debug_pid_del(struct r_debug_t *dbg)
|
|
|
|
{
|
2009-09-10 20:51:34 +00:00
|
|
|
// kill da child
|
2009-04-01 22:44:43 +00:00
|
|
|
return R_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* threads */
|
|
|
|
R_API int r_debug_pid_add_thread(struct r_debug_t *dbg)
|
|
|
|
{
|
2009-09-10 20:51:34 +00:00
|
|
|
// create a thread in process
|
2009-04-01 22:44:43 +00:00
|
|
|
return R_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
R_API int r_debug_pid_del_thread(struct r_debug_t *dbg)
|
|
|
|
{
|
2009-09-10 20:51:34 +00:00
|
|
|
// kill a thread in process
|
2009-04-01 22:44:43 +00:00
|
|
|
return R_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* status */
|
2009-09-10 20:51:34 +00:00
|
|
|
R_API int r_debug_pid_set_state(struct r_debug_t *dbg, int status)
|
2009-04-01 22:44:43 +00:00
|
|
|
{
|
|
|
|
return R_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* status */
|
2009-09-10 20:51:34 +00:00
|
|
|
R_API struct r_debug_pid_t *r_debug_pid_get_status(struct r_debug_t *dbg, int pid)
|
2009-04-01 22:44:43 +00:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|