View Full Version : Breakpoint problems
matt
August 24th, 2001, 23:00
I am having a problem with Softice where the breakpoints aren't working! This is the NT version of softice btw.. I have had this problem for a while, so I got the example program that comes with Masm32, called MessageBox

.. set a breakpoint on MessageBoxA, which I for sure know that it calls... and run the program - however softice does nothing! I didn't get a symbol not defined error.. so what could be wrong?
I was running halflife though and i set a breakpoint on WM_LBUTTONDOWN and it worked fine, so at least it works a little bit..
Perhaps breakpoints are process specific??
Thanks, in advance. Matt.
qferret
August 25th, 2001, 16:35
[QUOTE]
matt (08-24-2001 21:00):
so I got the example program that comes with Masm32, called MessageBox

.. set a breakpoint on MessageBoxA, which I for sure know that it calls... quote]
For SURE? ....I didn't check, but r u sure it doesn't just call MessageBox and not MessageBoxA? (1 is 16 bit....the one with the "a" at the end is 32 bit)
matt
August 25th, 2001, 21:20
Well, I checked the source code, and it called MessageBox.. however, when I ran it using softsnoop, softsnoop said that it called messageboxa.. And when I try and set a breakpoint for messagebox in softice it says symbol not defined.
I dont think windows2000 would export a 16bit function.
But if i still need to set a breakpoint for MessageBox, how do I 'define the symbol'?
matt
August 25th, 2001, 21:51
Ok i dissassembled it and it IS calling MessageBoxA, and after I read the #c4n faq i learnt that I might need to set something up for the breakpoints to work.. so i am going to set a breakpoint for program entry - use 'addr msgbox' (the name of the program), then set bpx messageboxa.. that might work
matt
August 25th, 2001, 23:25
but it didn't.. anybody have any ideas?
maybe a reinstall of ice
matt
August 25th, 2001, 23:26
but it didn't.. anybody have any ideas?
maybe a reinstall of ice
frustrated
August 25th, 2001, 23:53
Just out of curiosity, did you see any messagebox produced by the program you want to run in softice? When you say the breakpoint doesn't work, has there been at any point of time when you set the breakpoint, the breakpoint doesn't break and you see a real messagebox?
matt
August 26th, 2001, 03:32
I've been testing Softice on two programs. So far the breakpoints havent worked. I dissassembled both and found out that they both called MessageBoxA, - one ONLY called it, it was an example win32 programming project, and the other called it when you entered an invalid registration.
The breakpoint is always set, and I always see the messagebox, and softice doesnt catch it.
matt
August 26th, 2001, 03:34
Curiously the symbol loader doesnt load the symbols, and doesnt break at winmain like it should.
I could be something to do with my system configuration. But I don't know what.
frustrated
August 26th, 2001, 04:35
in this case, try this.
after you disassemble one of that program you want, and you know where the messagebox is at, set a breakpoint near it. Don't set it on a API. Just one of the addresses close to the messagebox. To do that however, you might have to gain entry into the program's thread 1st. That is up to you to figure.
Then trace to the messagebox and see what is shown in softice and trace into that call and see what causes the messagebox. Is it user32.dll like other gates' OS or some other weird dlls? I don't use win2k so that's all I can think of to help.
matt
August 26th, 2001, 21:38
maybe the fact that typing 'sym' in softice returns 'No symbol table' means something?
isotope
August 27th, 2001, 05:18
You are not alone!
I've been working with SIce for years, but recently switched to Win2K SP2. SIce sorta works for me too. Especially in the message box area. I can't get it to do anything. A second problem here is that the API names appear to be different than any other version of windows. I downloaded the 180MB symbol tables from M$ and installed, but SIce can't seem to translate the information without producing an error every other line in the file.
I'm assuming that others have over come this problem or just went back to Win98. Me? I guess I'll just have to start waiting for someone else to fix the programs. It was just a hobby anyway.
Good luck.
matthew
August 28th, 2001, 01:02
Well I got the symbols to load properly, except for user32 and shell32 (yes they are main ones!). But it didnt matter because nothing worked anyways - and they should have worked because of the exports loading (?).. oh well.
I'm burning a cd that will have win98SE. masm32, tasm5, virus zines, windows ebooks, sandman and orc cracking tutorials, directx and some other driver updates, plus some apps like winrar etc.
Win98 is only taking up 400 megabytes for some reason so I can still cram a lot of stuff onto that 700 meg cd-rom.
After the cd is set up it should only take 1 hour to have the computer fully setup.
I'll miss things about windows 2000 though ;( I could disable and install networking protocols without rebooting.. lots of little enhancments .. but compatibility was a big issue. Win98 will be ok.
BTW the main problem with win2k would be the build of your version. mine was unsupported mostly which sucks ;(
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.