Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2818 → Rev 2825

/branches/tracing/kernel/generic/include/proc/task.h
52,6 → 52,7
#include <arch/cpu.h>
#include <mm/tlb.h>
#include <proc/scheduler.h>
#include <udebug/udebug.h>
 
struct thread;
 
95,8 → 96,7
atomic_t active_calls;
 
/** Debugging stuff */
bool being_debugged;
bool stop_request;
udebug_task_state_t dt_state;
call_t *debug_begin_call;
call_t *debug_go_call;
int not_stoppable_count;
/branches/tracing/kernel/generic/include/proc/thread.h
208,6 → 208,7
waitq_t go_wq;
unative_t syscall_args[6];
istate_t *uspace_state;
bool debug_stop;
} thread_t;
 
/** Thread list lock.
/branches/tracing/kernel/generic/include/udebug/udebug.h
128,6 → 128,17
 
#ifdef KERNEL
 
typedef enum {
/** Task is not being debugged */
UDEBUG_TS_INACTIVE,
/** BEGIN operation in progress (waiting for threads to stop) */
UDEBUG_TS_BEGINNING,
/** Debugger fully connected */
UDEBUG_TS_ACTIVE,
/** Task is shutting down, no more debug activities allowed */
UDEBUG_TS_SHUTDOWN
} udebug_task_state_t;
 
void udebug_syscall_event(unative_t a1, unative_t a2, unative_t a3,
unative_t a4, unative_t a5, unative_t a6, unative_t id, unative_t rc);
void udebug_stoppable_begin(void);