Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2940 → Rev 2941

/branches/tracing/uspace/app/debug/dthread.c
129,16 → 129,16
 
unsigned dthread_get_pc(dthread_t *dt)
{
static unsigned istate_buffer[1024];
static istate_t istate;
int rc;
 
rc = udebug_regs_read(app_phone, dt->hash, istate_buffer);
rc = udebug_regs_read(app_phone, dt->hash, &istate);
if (rc < 0) {
printf("failed reading registers (%d)\n", rc);
return 0;
}
 
return istate_get_pc(istate_buffer);
return istate_get_pc(&istate);
}
 
/** @}