Made the winedbg an external and WineLib program.
Centralized output handling (preparation for console usage).
Fixed a few debug information reading options (stabs and sym).
Started a framework to hold debugger's internal variables.
diff --git a/include/stackframe.h b/include/stackframe.h
index 80b3073..9cc0389 100644
--- a/include/stackframe.h
+++ b/include/stackframe.h
@@ -96,15 +96,15 @@
/* Push a DWORD on the 32-bit stack */
static inline void WINE_UNUSED stack32_push( CONTEXT86 *context, DWORD val )
{
- ESP_reg(context) -= sizeof(DWORD);
- *(DWORD *)ESP_reg(context) = val;
+ context->Esp -= sizeof(DWORD);
+ *(DWORD *)context->Esp = val;
}
/* Pop a DWORD from the 32-bit stack */
static inline DWORD WINE_UNUSED stack32_pop( CONTEXT86 *context )
{
- DWORD ret = *(DWORD *)ESP_reg(context);
- ESP_reg(context) += sizeof(DWORD);
+ DWORD ret = *(DWORD *)context->Esp;
+ context->Esp += sizeof(DWORD);
return ret;
}