mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
dump
This commit is contained in:
parent
61ad104c59
commit
29a8c50d0a
10
pc/regs.c
10
pc/regs.c
@ -73,9 +73,7 @@ void dumpregs(ctx_t *ctx)
|
||||
|
||||
assert(ctx->r[INV].val == 0);
|
||||
|
||||
log("\nRegisters:\n");
|
||||
log("rip=0x%-16lX flg=0x%-16lX ", ctx->r[RIP].val, ctx->r[FLG].val);
|
||||
log("rbp=0x%-16lX rsp=0x%-16lX", ctx->r[RBP].val, ctx->r[RSP].val);
|
||||
log("\nRegisters:");
|
||||
|
||||
for (i = RAX; i < CR4; i++) {
|
||||
if ((i-1) % 4 == 0)
|
||||
@ -85,6 +83,10 @@ void dumpregs(ctx_t *ctx)
|
||||
log("%s%s=0x%-16lX ", r->name,
|
||||
(strlen(r->name) == 2 ? "=" : ""), r->val);
|
||||
}
|
||||
log("\n");
|
||||
log("\nrip=0x%-16lX rbp=0x%-16lX rsp=0x%-16lX flg=0x%-16lX\n",
|
||||
ctx->r[RIP].val,
|
||||
ctx->r[RBP].val,
|
||||
ctx->r[RSP].val,
|
||||
ctx->r[FLG].val);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user