Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
2886 |
5955 d 9 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Move rest of debug method processing, that can be moved, to kbox thread |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2885 |
5955 d 10 h |
svoboda |
/branches/tracing/ |
Start moving debug method processing to kbox_thread. Start with BEGIN, END, THREAD_READ |
|
/branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/uspace/app/sctrace/debug_api.c
|
2870 |
5957 d 21 h |
svoboda |
/branches/tracing/kernel/generic/ |
Terminate debugging session on debugger disconnect |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2869 |
5957 d 22 h |
svoboda |
/branches/tracing/kernel/generic/src/time/ |
Make preempted threads stoppable, so CPU-bound threads can be stopped |
|
/branches/tracing/kernel/generic/src/time/clock.c
|
2867 |
5958 d 3 h |
svoboda |
/branches/tracing/ |
Signal hash of new thread with a UDEBUG_EVENT_NEW_THREAD message |
|
/branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/uspace/app/sctrace/sctrace.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2866 |
5958 d 8 h |
svoboda |
/branches/tracing/kernel/generic/ |
Verify that thread is waiting in syscall event when reading syscall args |
|
/branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2865 |
5958 d 9 h |
svoboda |
/branches/tracing/kernel/generic/src/ |
Put proper udebug_stoppable_end() in uinit |
|
/branches/tracing/kernel/generic/src/main/uinit.c /branches/tracing/kernel/generic/src/proc/thread.c
|
2854 |
5976 d 10 h |
svoboda |
/branches/tracing/ |
Fix condition for generating debug events. Properly initialize threads created during debugging session |
|
/branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/uspace/app/sctrace/sctrace.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2851 |
5976 d 21 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Fix locking order in udebug_rp_end (to the somewhat unintuitive threads_lock => t->debug_lock => t->lock |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2849 |
5976 d 21 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Move code for verifying and locking down a thread for a debugging op to _thread_op_begin()/_thread_op_end(). Rewritten to prevent case of mistaken task identity |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2848 |
5977 d 7 h |
svoboda |
/branches/tracing/kernel/generic/ |
Use debug_lock in thread struct for finer locking, to avoid problems with waitq_wakeup |
|
/branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2842 |
5978 d 0 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Fix and document verify_thread() |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2841 |
5978 d 1 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Add verify_thread() to check that a thread is valid for debug ops |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2840 |
5978 d 1 h |
svoboda |
/branches/tracing/kernel/generic/src/ipc/ |
Fix: Clear kb_thread_at_hand when terminating kbox thread |
|
/branches/tracing/kernel/generic/src/ipc/ipc.c
|
2839 |
5978 d 1 h |
svoboda |
/branches/tracing/kernel/generic/ |
Add thread_attach_by_id() and use it to do ipc_connect_kbox() with proper locking |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c
|
2838 |
5978 d 3 h |
svoboda |
/branches/tracing/ |
Respond to pending GO messages with UDEBUG_EVENT_FINISHED on terminating the debugging session. Set retval for DEBUG_END answer. |
|
/branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/uspace/app/sctrace/sctrace.c
|
2837 |
5978 d 7 h |
svoboda |
/branches/tracing/ |
Handle hangup message sent to kbox. Exit kbox thread when the last phone has been disconnected. |
|
/branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/uspace/app/sctrace/sctrace.c
|
2836 |
5978 d 9 h |
svoboda |
/branches/tracing/kernel/generic/src/ipc/ |
Fix: only create kbox thread if it doesn't exist yet |
|
/branches/tracing/kernel/generic/src/ipc/ipc.c
|
2835 |
5978 d 9 h |
svoboda |
/branches/tracing/ |
Improve UDEBUG_M_END handling, switch sctrace to async API |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/uspace/app/sctrace/debug_api.c /branches/tracing/uspace/app/sctrace/debug_api.h /branches/tracing/uspace/app/sctrace/sctrace.c
|
2834 |
5978 d 20 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Handle UDEBUG_M_END call, fix check in udebug_syscall_event() |
|
/branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2833 |
5978 d 21 h |
svoboda |
/branches/tracing/ |
Remove buffer size argument from ARGS_READ call. |
|
/branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c /branches/tracing/uspace/app/sctrace/debug_api.c
|
2827 |
5982 d 7 h |
svoboda |
/branches/tracing/kernel/generic/ |
Verify that a thread/task is in appropriate state when handling debug calls |
|
/branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2826 |
5982 d 9 h |
svoboda |
/branches/tracing/kernel/generic/ |
Move debug_go_call from task struct to thread struct |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2825 |
5982 d 9 h |
svoboda |
/branches/tracing/kernel/generic/ |
Introduce task debug-states (udebug_task_state_t) |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2824 |
5982 d 10 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Use intermediate buffers for handling REGS_READ, REGS_WRITE and THREADS_READ |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2823 |
5982 d 11 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Improve locking in udebug.c and udebug_ipc.c |
|
/branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2819 |
5982 d 23 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Fix: crashed caused by missing return in switch statement |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2818 |
5983 d 0 h |
svoboda |
/branches/tracing/kernel/generic/ |
Add MEM_WRITE debug method for writing a task's memory |
|
/branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2817 |
5983 d 0 h |
svoboda |
/branches/tracing/kernel/generic/ |
Add REGS_READ and REGS_WRITE debug methods to access userspace register state (no effect yet) |
|
/branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/src/interrupt/interrupt.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2816 |
5983 d 3 h |
svoboda |
/branches/tracing/kernel/generic/src/udebug/ |
Use thread-struct pointer for identification within debug connection |
|
/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2815 |
5983 d 3 h |
svoboda |
/branches/tracing/kernel/generic/ |
Move kernelbox debug message handling to udebug/udebug_ipc.c |
|
/branches/tracing/kernel/generic/include/udebug/udebug_ipc.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
|
2813 |
5983 d 6 h |
svoboda |
/branches/tracing/ |
Move debug call preprocessing from ipc/sysipc.c to udebug/udebug_ipc.c |
|
/branches/tracing/kernel/generic/include/udebug /branches/tracing/kernel/generic/include/udebug/udebug.h /branches/tracing/kernel/generic/include/udebug/udebug_ipc.h /branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
/branches/tracing/kernel/generic/include/udebug.h
/branches/tracing/kernel/Makefile /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/uspace/lib/libc/include/udebug.h
|
2812 |
5983 d 7 h |
svoboda |
/branches/tracing/ |
Group debug IPC calls under a single method number, differentiate by ARG1 |
|
/branches/tracing/uspace/lib/libc/include/udebug.h
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/include/udebug.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2810 |
5983 d 9 h |
svoboda |
/branches/tracing/kernel/generic/src/ipc/ |
fix bug in debug_args_read() that caused it to only copy 6 bytes |
|
/branches/tracing/kernel/generic/src/ipc/sysipc.c
|
2809 |
5983 d 9 h |
svoboda |
/branches/tracing/ |
add call to read the debugged task's memory |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2808 |
5983 d 23 h |
svoboda |
/branches/tracing/ |
add kernel answerbox+thread to mediate access to task's memory |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/include/ipc/sysipc.h /branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/syscall/syscall.h /branches/tracing/kernel/generic/src/ipc/ipc.c /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/uspace/app/tester/debug/debug1.c /branches/tracing/uspace/lib/libc/generic/ipc.c /branches/tracing/uspace/lib/libc/include/ipc/ipc.h
|
2807 |
5984 d 10 h |
svoboda |
/branches/tracing/ |
initial support for debugging multithreaded tasks |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2805 |
5985 d 3 h |
svoboda |
/branches/tracing/ |
add ipc call to retrieve syscall arguments |
|
/branches/tracing/kernel/generic/include/ipc/ipc.h /branches/tracing/kernel/generic/include/proc/thread.h /branches/tracing/kernel/generic/include/udebug.h /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/kernel/generic/src/udebug/udebug.c /branches/tracing/uspace/app/tester/debug/debug1.c
|
2804 |
5985 d 5 h |
svoboda |
/branches/tracing/kernel/generic/ |
allow for attaching to tasks with sleeping threads |
|
/branches/tracing/kernel/generic/include/proc/task.h /branches/tracing/kernel/generic/include/udebug.h /branches/tracing/kernel/generic/src/ipc/sysipc.c /branches/tracing/kernel/generic/src/proc/task.c /branches/tracing/kernel/generic/src/proc/thread.c /branches/tracing/kernel/generic/src/syscall/syscall.c /branches/tracing/kernel/generic/src/udebug/udebug.c
|
2803 |
5985 d 6 h |
svoboda |
/branches/tracing/kernel/generic/src/proc/ |
fix: initialize debug fields in task structure |
|
/branches/tracing/kernel/generic/src/proc/task.c
|