[WineDbg]: frames handling.

Eric Pouech eric.pouech at wanadoo.fr
Thu Nov 17 15:13:20 CST 2005

This patch is the first of 3 patches to deal with local context handling 
in dbghelp & winedbg. Basically, native dbghelp fails if we set the 
"local context" with SymSetContext (understand the stack frame where to 
look for for local variables) to the frame which has been selected with 
previous call to SymSetContext.
Currently, Winedbg calls symsetcontext each time it needs to look for 
local variables. The set of patches will deal with reducing a call the 
number of times we call SymSetContext in Winedbg, and basically doing 
only when we change the current frame (mainly, after execution stops, 
and for up/down commands).

- now storing frames information in thread structure
- frames are cached after each thread stops execution
- reimplemented backtrace on top of this

  programs/winedbg/dbg.y      |   16 +++---
  programs/winedbg/debugger.h |   14 ++++-
  programs/winedbg/stack.c    |  118 
  programs/winedbg/symbol.c   |    4 +
  programs/winedbg/winedbg.c  |   11 +++-
  5 files changed, 104 insertions(+), 59 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5e389cba91b2541bec57a5d3f30cadc8a9bbca7f.diff
Type: text/x-patch
Size: 14276 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051117/9d27d200/5e389cba91b2541bec57a5d3f30cadc8a9bbca7f-0001.diff

More information about the wine-patches mailing list