Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4591 → Rev 4392

/branches/tracing/kernel/arch/amd64/include/interrupt.h
97,7 → 97,7
{
istate->rip = retaddr;
}
static inline unative_t istate_get_pc(istate_t *istate)
static inline uintptr_t istate_get_pc(istate_t *istate)
{
return istate->rip;
}
/branches/tracing/kernel/generic/src/udebug/udebug_ops.c
489,7 → 489,7
istate_t *state;
int rc;
 
LOG("udebug_regs_read()");
// printf("udebug_regs_read()\n");
 
/* On success, this will lock t->udebug.lock */
rc = _thread_op_begin(t, false);
509,8 → 509,6
 
_thread_op_end(t);
 
LOG("pc = 0x%" PRIp, istate_get_pc((istate_t *) buffer));
 
return 0;
}
 
/branches/tracing/uspace/app/debug/arch/ia32/include/types.h
47,6 → 47,10
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 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,
"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,
istate.ds, istate.es, istate.fs, istate.gs);
}