1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-05-29 23:02:21 +02:00
parent 61ad104c59
commit 29a8c50d0a
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62

View File

@ -73,9 +73,7 @@ void dumpregs(ctx_t *ctx)
assert(ctx->r[INV].val == 0); assert(ctx->r[INV].val == 0);
log("\nRegisters:\n"); log("\nRegisters:");
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);
for (i = RAX; i < CR4; i++) { for (i = RAX; i < CR4; i++) {
if ((i-1) % 4 == 0) if ((i-1) % 4 == 0)
@ -85,6 +83,10 @@ void dumpregs(ctx_t *ctx)
log("%s%s=0x%-16lX ", r->name, log("%s%s=0x%-16lX ", r->name,
(strlen(r->name) == 2 ? "=" : ""), r->val); (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);
} }