Christian Costa : winedbg: Make frame numbers display starting from 0 so we match frame command.

Alexandre Julliard julliard at winehq.org
Mon Dec 8 09:45:58 CST 2008


Module: wine
Branch: master
Commit: 88cf37fd85c0cf03c0c739509264ed922e7e71e1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88cf37fd85c0cf03c0c739509264ed922e7e71e1

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Sat Dec  6 19:00:10 2008 +0100

winedbg: Make frame numbers display starting from 0 so we match frame command.

---

 programs/winedbg/stack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c
index 2f86389..8fc877f 100644
--- a/programs/winedbg/stack.c
+++ b/programs/winedbg/stack.c
@@ -289,7 +289,7 @@ static void backtrace(void)
     {
         dbg_printf("%s%d ", 
                    (cf == dbg_curr_thread->curr_frame ? "=>" : "  "),
-                   dbg_curr_thread->curr_frame + 1);
+                   dbg_curr_thread->curr_frame);
         stack_print_addr_and_args(dbg_curr_thread->curr_frame);
         dbg_printf(" (");
         print_bare_address(&dbg_curr_thread->frames[dbg_curr_thread->curr_frame].addr_frame);




More information about the wine-cvs mailing list