ntdll: Trace context on Sparc
André Hentschel
nerv at dawncrow.de
Wed Nov 23 14:58:17 CST 2011
I'm working on getting sparc to run again. So this patch and the following patchset are not related to the winebuild changes i still need to test, but my later work will depend on it.
---
dlls/ntdll/signal_sparc.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/signal_sparc.c b/dlls/ntdll/signal_sparc.c
index ac9ee9c..7132432 100644
--- a/dlls/ntdll/signal_sparc.c
+++ b/dlls/ntdll/signal_sparc.c
@@ -201,7 +201,24 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f
}
else
{
- /* FIXME: dump context */
+ TRACE(" Psr:%04x P:%04x NPc:%04x Y:%04x Wim:%04x Tbr:%04x\n",
+ context->psr, context->pc, context->npc, context->y, context->wim, context->tbr);
+ TRACE(" g0:%04x o0:%04x l0:%04x i0:%04x\n",
+ context->g0, context->o0, context->l0, context->i0);
+ TRACE(" g1:%04x o1:%04x l1:%04x i1:%04x\n",
+ context->g1, context->o1, context->l1, context->i1);
+ TRACE(" g2:%04x o2:%04x l2:%04x i2:%04x\n",
+ context->g2, context->o2, context->l2, context->i2);
+ TRACE(" g3:%04x o3:%04x l3:%04x i3:%04x\n",
+ context->g3, context->o3, context->l3, context->i3);
+ TRACE(" g4:%04x o4:%04x l4:%04x i4:%04x\n",
+ context->g4, context->o4, context->l4, context->i4);
+ TRACE(" g5:%04x o5:%04x l5:%04x i5:%04x\n",
+ context->g5, context->o5, context->l5, context->i5);
+ TRACE(" g6:%04x o6:%04x l6:%04x i6:%04x\n",
+ context->g6, context->o6, context->l6, context->i6);
+ TRACE(" g7:%04x o7:%04x l7:%04x i7:%04x\n",
+ context->g7, context->o7, context->l7, context->i7);
}
status = send_debug_event( rec, TRUE, context );
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list