Subversion Repositories HelenOS

Rev

Rev 4605 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4605 Rev 4616
Line 97... Line 97...
97
{
97
{
98
    return async_req_2_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_STOP,
98
    return async_req_2_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_STOP,
99
        tid);
99
        tid);
100
}
100
}
101
 
101
 
-
 
102
int udebug_thread_copy_kstack(int phoneid, thash_t tid, void *buffer, size_t buf_size, size_t *copied, size_t *needed)
-
 
103
{
-
 
104
    size_t arg_copied, arg_needed;
-
 
105
 
-
 
106
    int rc = async_req_4_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_COPY_KSTACK, (sysarg_t)buffer, buf_size, tid, NULL, &arg_copied, &arg_needed);
-
 
107
 
-
 
108
    *copied = arg_copied;
-
 
109
    *needed = arg_needed;
-
 
110
 
-
 
111
    return (rc);
-
 
112
}
-
 
113
 
-
 
114
int udebug_thread_get_thread_struct(int phoneid, thash_t tid, void *buffer, size_t n, size_t *copied, size_t *needed)
-
 
115
{
-
 
116
    ipcarg_t a_copied, a_needed;
-
 
117
 
-
 
118
    int rc = async_req_4_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_GET_THREAD_STRUCT, (sysarg_t)buffer, tid, n, NULL, &a_copied, &a_needed);
-
 
119
 
-
 
120
    *copied = (size_t)a_copied;
-
 
121
    *needed = (size_t)a_needed;
-
 
122
 
-
 
123
    return (rc);
-
 
124
}
-
 
125
 
-
 
126
int udebug_task_memory_areas_read(int phoneid, void *buffer, size_t n, size_t *copied, size_t *needed)
-
 
127
{
-
 
128
    ipcarg_t a_copied, a_needed;
-
 
129
    int rc;
-
 
130
 
-
 
131
    rc = async_req_3_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_TASK_MEM_AREAS_READ,
-
 
132
        (sysarg_t)buffer, n, NULL, &a_copied, &a_needed);
-
 
133
 
-
 
134
    *copied = (size_t)a_copied;
-
 
135
    *needed = (size_t)a_needed;
-
 
136
 
-
 
137
    return (rc);
-
 
138
}
-
 
139
 
-
 
140
int udebug_thread_restore_thread_struct(int phoneid, thash_t tid, void *buffer)
-
 
141
{
-
 
142
    int rc = async_req_3_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_RESTORE_THREAD_STRUCT, (sysarg_t)buffer, tid);
-
 
143
    return (rc);
-
 
144
}
-
 
145
 
-
 
146
int udebug_mem_write(int phoneid, void *buffer, void *start, size_t n)
-
 
147
{
-
 
148
    return async_req_4_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_MEM_WRITE, (sysarg_t)buffer, n, (sysarg_t)start);
-
 
149
}
-
 
150
 
-
 
151
int udebug_restore_kstack(int phoneid, thash_t tid, void *buffer, size_t size)
-
 
152
{
-
 
153
    return async_req_4_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_RESTORE_KSTACK, (sysarg_t)buffer, size, tid);
-
 
154
}
-
 
155
 
102
/** @}
156
/** @}
103
 */
157
 */