Log in

View Full Version : Help with Backtrace in Soft Ice


xOptiMus
December 6th, 2000, 08:17
hello all,

Can anyone help me using "Backtrace" in Soft Ice? I have 2 questions:

1) Am I right in thinking that bactrace is used to record all the instructions that you step through, so that you can reviw them again later?

2) How do I use or turn backtrace on? I have increased the backtrace buffer size to 128 in winice.dat, but still don't seem able to use it. If I type: TRACE and enter in the command window, I get the message "Trace simulation is off". I have also tried typing the example from "help trace": TRACE 50, but I get the message: "Backtrace buffer is empty".
I just can't seem to get anywhere with it!

Any help greatly appreciated

xOptiMus

Spath.
December 6th, 2000, 14:49
> 1) Am I right in thinking that bactrace is used to record
> all the instructions that you step through, so that you
> can reviw them again later?

Not exactly, only addresses are recorded.

> If I type: TRACE and enter in the command window, I get
> the message "Trace simulation is off".

Yes, as explained in the softice doc.... :/

> I have also tried typing the example from "help trace":
> TRACE 50, but I get the message: "Backtrace buffer is empty".
> I just can't seem to get anywhere with it!

1) load Notepad and look at the mapping
:map32 notepad
Owner Obj Name Obj# Address Size Type
NOTEPAD .text 0001 0137:00401000 00003953 CODE RO
NOTEPAD .bss 0002 013F:00405000 0000043A UDATA RW

2) define your watch range
:bpr cs:401000 cs:404000 t

3) define when to stop watching
:bpx cs:40133e

4) run Notepad, open a file an save it. Breakpoint 1
should trigger, then you enter trace mode :
:trace 1

5) use AltF8/CtrlF8 to move in the backtrace buffer.

6) exit trace mode.
:trace off