Log in

View Full Version : Setting a breakpoint in Softice


sync
August 24th, 2002, 02:42
I installed Win2k in a partition for using SI, so I no longer have XP problems. I've read a lot of tutorials but I still can't get SI to break at both the right time and the right place.

I want SI to break on the first instruction after a call to GetWindowTextA and I want it to break after I've entered the password. How do I do that?

dion
August 24th, 2002, 03:29
thats weird. hmm... try to TRACE the program until the window show up, dont use bpx yet. and then type whatever u want then press enter.

hope that will solve the problem.

sync
August 24th, 2002, 03:49
It would take forever to trace to that point. But even if I could, I would have to exit SI to enter the password, and then there wouldn't be anything to bring me back into SI.

DakienDX
August 24th, 2002, 10:01
Hello sync !

I don't think I understand you correctly.
GetWindowTextA does not pop up a box where you can enter something and exits after that.
GetWindowTextA lets you read the text entered in some edit control. It will be called after you entered text and pressed "OK" or "<Return>" or similar.

I think you have a program which executes GetWindowTextA several times before it shows you the field where you can enter something.
If this is true, you should clear all breakpoints, enter the text, set a BPX on GetWindowTextA and press the "OK" button then. You can get to the first instruction after the API by pressing F12 then.
Also check what was read, since some programs read the windows caption before they read data entered in the window.

sync
August 24th, 2002, 14:35
>>GetWindowTextA does not pop up a box where you can enter something and exits after that.
Yes, I finally discovered late last night that my assumption is not true.


>>GetWindowTextA lets you read the text entered in some edit control.
I also made this assumption, but it's not always true as you point out. What is the point in reading the window's caption?