projects
/
mate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46086d6
)
traps: debugging
author
Bernhard Urban
<lewurm@gmail.com>
Sun, 20 May 2012 19:47:05 +0000
(21:47 +0200)
committer
Bernhard Urban
<lewurm@gmail.com>
Sun, 20 May 2012 19:47:05 +0000
(21:47 +0200)
ffi/trap.c
patch
|
blob
|
history
diff --git
a/ffi/trap.c
b/ffi/trap.c
index e0878b2bb0a296989934bf48b9314c355fb0d0df..60b8048cb9c410d0078f0236d9c02d9a1f823277 100644
(file)
--- a/
ffi/trap.c
+++ b/
ffi/trap.c
@@
-43,6
+43,9
@@
void chandler(int nSignal, siginfo_t *info, void *ctx)
unsigned int eax = (unsigned int) mctx->gregs[REG_EAX];
unsigned int ebx = (unsigned int) mctx->gregs[REG_EBX];
unsigned int esp = (unsigned int) mctx->gregs[REG_ESP];
+ dprintf("trap: type %d, eip 0x%08x, eax 0x%08x, ebx 0x%08x, "
+ "esp 0x%08x, *esp 0x%08x\n", nSignal, eip,
+ eax, ebx, esp, *(unsigned int*) esp);
mctx->gregs[REG_EIP] = mateHandler(eip, eax, ebx, esp);
}