Francois Gouget : winedbg: stack_get_register_current_frame() is not used anymore so remove it.

Alexandre Julliard julliard at winehq.org
Wed Mar 30 13:15:47 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Mar 30 16:41:23 2011 +0200

winedbg: stack_get_register_current_frame() is not used anymore so remove it.

---

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

diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c
index a291c61..f6583a3 100644
--- a/programs/winedbg/stack.c
+++ b/programs/winedbg/stack.c
@@ -111,29 +111,6 @@ BOOL stack_get_current_frame(IMAGEHLP_STACK_FRAME* ihsf)
     return stack_get_frame(dbg_curr_thread->curr_frame, ihsf);
 }
 
-BOOL stack_get_register_current_frame(unsigned regno, DWORD_PTR** pval)
-{
-    enum be_cpu_addr            kind;
-
-    if (dbg_curr_thread->frames == NULL) return FALSE;
-
-    if (!be_cpu->get_register_info(regno, &kind)) return FALSE;
-
-    switch (kind)
-    {
-    case be_cpu_addr_pc:
-        *pval = &dbg_curr_thread->frames[dbg_curr_thread->curr_frame].linear_pc;
-        break;
-    case be_cpu_addr_stack:
-        *pval = &dbg_curr_thread->frames[dbg_curr_thread->curr_frame].linear_stack;
-        break;
-    case be_cpu_addr_frame:
-        *pval = &dbg_curr_thread->frames[dbg_curr_thread->curr_frame].linear_frame;
-        break;
-    }
-    return TRUE;
-}
-
 BOOL stack_get_register_frame(const struct dbg_internal_var* div, DWORD_PTR** pval)
 {
     if (dbg_curr_thread->frames == NULL) return FALSE;




More information about the wine-cvs mailing list