Commit 3a183a42 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

dbghelp: Only declare deltapc for i386.

parent 32bba812
...@@ -157,8 +157,8 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO ...@@ -157,8 +157,8 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
WORD val16; WORD val16;
DWORD val32; DWORD val32;
BOOL do_switch; BOOL do_switch;
unsigned deltapc;
#ifdef __i386__ #ifdef __i386__
unsigned deltapc;
CONTEXT _context; CONTEXT _context;
#endif #endif
...@@ -174,6 +174,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO ...@@ -174,6 +174,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
wine_dbgstr_longlong(curr_count), wine_dbgstr_longlong(curr_count),
(void*)(DWORD_PTR)curr_switch, (void*)(DWORD_PTR)next_switch); (void*)(DWORD_PTR)curr_switch, (void*)(DWORD_PTR)next_switch);
#ifdef __i386__
/* if we're at first call (which doesn't actually unwind, it just computes ReturnPC, /* if we're at first call (which doesn't actually unwind, it just computes ReturnPC,
* or if we're doing the first real unwind (count == 1), then we can directly use * or if we're doing the first real unwind (count == 1), then we can directly use
* eip. otherwise, eip is *after* the insn that actually made the call to * eip. otherwise, eip is *after* the insn that actually made the call to
...@@ -184,7 +185,6 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO ...@@ -184,7 +185,6 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
*/ */
deltapc = curr_count <= 1 ? 0 : 1; deltapc = curr_count <= 1 ? 0 : 1;
#ifdef __i386__
if (!context) if (!context)
{ {
/* setup a pseudo context for the rest of the code (esp. unwinding) */ /* setup a pseudo context for the rest of the code (esp. unwinding) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment