Subversion Repositories HelenOS

Rev

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

Rev 2940 Rev 2942
Line 156... Line 156...
156
{
156
{
157
    cons_printf("breakpoint hit\n");
157
    cons_printf("breakpoint hit\n");
158
    thread_stop();
158
    thread_stop();
159
}
159
}
160
 
160
 
-
 
161
/*
-
 
162
 * Called by a fibril (from arch code) when a single instruction
-
 
163
 * in singlestep is executed
-
 
164
 */
-
 
165
void singlestep_hit(void)
-
 
166
{
-
 
167
    cons_printf("singlestep hit\n");
-
 
168
    thread_stop();
-
 
169
}
-
 
170
 
161
static int task_connect(int taskid)
171
static int task_connect(int taskid)
162
{
172
{
163
    int rc;
173
    int rc;
164
    unsigned evmask;
174
    unsigned evmask;
165
 
175
 
Line 264... Line 274...
264
        break;
274
        break;
265
    case UDEBUG_EVENT_BREAKPOINT:
275
    case UDEBUG_EVENT_BREAKPOINT:
266
        arch_event_breakpoint(thash);
276
        arch_event_breakpoint(thash);
267
        break;
277
        break;
268
    case UDEBUG_EVENT_TRAP:
278
    case UDEBUG_EVENT_TRAP:
269
        arch_event_trap(thash);
279
        arch_event_trap(dthread_get());
270
        break;
280
        break;
271
    default:
281
    default:
272
        cons_printf("unknown event type %d\n", ev_type);
282
        cons_printf("unknown event type %d\n", ev_type);
273
        break;
283
        break;
274
    }
284
    }