Author: tkreuzer
Date: Wed Mar 28 11:08:41 2012
New Revision: 56259
URL:
http://svn.reactos.org/svn/reactos?rev=56259&view=rev
Log:
[DBGHELP]
Fix 64 bit compilation. "Should be sent to wine"(tm)
Modified:
trunk/reactos/dll/win32/dbghelp/cpu_x86_64.c
trunk/reactos/dll/win32/dbghelp/dbghelp_ros.diff
Modified: trunk/reactos/dll/win32/dbghelp/cpu_x86_64.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dbghelp/cpu_x86_…
==============================================================================
--- trunk/reactos/dll/win32/dbghelp/cpu_x86_64.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dbghelp/cpu_x86_64.c [iso-8859-1] Wed Mar 28 11:08:41 2012
@@ -281,10 +281,10 @@
if ((op0 & 0xf8) == 0x48)
{
if (!sw_read_mem(csw, pc + 1, &op1, 1)) return FALSE;
+ if (!sw_read_mem(csw, pc + 2, &op2, 1)) return FALSE;
switch (op1)
{
case 0x81: /* add $nnnn,%rsp */
- if (!sw_read_mem(csw, pc + 2, &op2, 1)) return FALSE;
if (op0 == 0x48 && op2 == 0xc4)
{
pc += 7;
Modified: trunk/reactos/dll/win32/dbghelp/dbghelp_ros.diff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dbghelp/dbghelp_…
==============================================================================
--- trunk/reactos/dll/win32/dbghelp/dbghelp_ros.diff [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dbghelp/dbghelp_ros.diff [iso-8859-1] Wed Mar 28 11:08:41
2012
@@ -3,9 +3,9 @@
--- stabs.c (revision 35085)
+++ stabs.c (working copy)
@@ -64,6 +64,8 @@
-
+
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp_stabs);
-
+
+#define strtoull _strtoui64
+
/* Masks for n_type field */
@@ -16,11 +16,27 @@
--- cpu_sparc.c (revision 35085)
+++ cpu_sparc.c (working copy)
@@ -29,6 +29,8 @@
-
+
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
-
+
+#define IMAGE_FILE_MACHINE_SPARC 0x2000
+
static unsigned sparc_get_addr(HANDLE hThread, const CONTEXT* ctx,
enum cpu_addr ca, ADDRESS64* addr)
{
+Index: cpu_x86_64.c
+===================================================================
+--- cpu_x86_64.c (Revision 56237)
++++ cpu_x86_64.c (Arbeitskopie)
+@@ -281,10 +281,10 @@
+ if ((op0 & 0xf8) == 0x48)
+ {
+ if (!sw_read_mem(csw, pc + 1, &op1, 1)) return FALSE;
++ if (!sw_read_mem(csw, pc + 2, &op2, 1)) return FALSE;
+ switch (op1)
+ {
+ case 0x81: /* add $nnnn,%rsp */
+- if (!sw_read_mem(csw, pc + 2, &op2, 1)) return FALSE;
+ if (op0 == 0x48 && op2 == 0xc4)
+ {
+ pc += 7;