Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2939 → Rev 2940

/branches/tracing/uspace/app/debug/dthread.c
38,6 → 38,8
#include <futex.h>
#include <async.h>
 
#include "include/arch.h"
#include "main.h"
#include "dthread.h"
 
static int last_thread_id = 0;
125,6 → 127,19
futex_up(&async_futex);
}
 
unsigned dthread_get_pc(dthread_t *dt)
{
static unsigned istate_buffer[1024];
int rc;
 
rc = udebug_regs_read(app_phone, dt->hash, istate_buffer);
if (rc < 0) {
printf("failed reading registers (%d)\n", rc);
return 0;
}
 
return istate_get_pc(istate_buffer);
}
 
/** @}
*/