Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4392 → Rev 4393

/branches/tracing/kernel/generic/src/udebug/udebug_ops.c
489,7 → 489,7
istate_t *state;
int rc;
 
// printf("udebug_regs_read()\n");
LOG("udebug_regs_read()");
 
/* On success, this will lock t->udebug.lock */
rc = _thread_op_begin(t, false);
509,6 → 509,8
 
_thread_op_end(t);
 
LOG("pc = 0x%" PRIp, istate_get_pc((istate_t *) buffer));
 
return 0;
}
 
/branches/tracing/kernel/arch/amd64/include/interrupt.h
97,7 → 97,7
{
istate->rip = retaddr;
}
static inline uintptr_t istate_get_pc(istate_t *istate)
static inline unative_t istate_get_pc(istate_t *istate)
{
return istate->rip;
}
/branches/tracing/uspace/app/debug/arch/ia32/include/types.h
47,10 → 47,6
uint32_t eax;
uint32_t ecx;
uint32_t edx;
uint32_t esi;
uint32_t edi;
uint32_t ebp;
uint32_t ebx;
 
uint32_t gs;
uint32_t fs;
/branches/tracing/uspace/app/debug/arch/ia32/src/ia32.c
166,10 → 166,10
if (rc < 0) { cons_printf("Error reading regs\n"); return; }
 
cons_printf(
"eip:%08x eflags:%08x eax:%08x ebx:%08x ecx:%08x edx:%08x\n"
"esi:%08x edi:%08x cs:%04x ds:%04x es:%04x fs:%04x gs:%04x\n",
istate.eip, istate.eflags, istate.eax, istate.ebx,
istate.ecx, istate.edx, istate.esi, istate.edi, istate.cs,
"eip:%08x eflags:%08x eax:%08x ecx:%08x edx:%08x\n"
"cs:%04x ds:%04x es:%04x fs:%04x gs:%04x\n",
istate.eip, istate.eflags, istate.eax,
istate.ecx, istate.edx, istate.cs,
istate.ds, istate.es, istate.fs, istate.gs);
}