Re: Finding a point where a program is stuck in a loop



Displacer <spamtrap@xxxxxxxxxx> writes:
I'm debugging a C++ program, I don't have access to the original
source code so I'm doing it with the disassembly. Sometimes the
software appears to gets stuck in a loop, I assume this because the
program looks to freeze, but the debugger I'm running it in says its
still running.

My question is, is there a way to nail down where its getting stuck?
This is a windows program, and I'm using ollydbg as the debugger.

Run it using strace, so see if it's polling on any devices, files,
or locks.

If it isn't then just break it repeatedly in a debugger and find out
which bits of code seem to be run over and over again.

Phil
--
"Home taping is killing big business profits. We left this side blank
so you can help." -- Dead Kennedys, written upon the B-side of tapes of
/In God We Trust, Inc./.

.



Relevant Pages

  • Re: Finding a point where a program is stuck in a loop
    ... is there a way to nail down where its getting stuck? ... This is a windows program, and I'm using ollydbg as the debugger. ... body of the loop. ...
    (comp.lang.asm.x86)
  • Finding a point where a program is stuck in a loop
    ... source code so I'm doing it with the disassembly. ... is there a way to nail down where its getting stuck? ... and I'm using ollydbg as the debugger. ...
    (comp.lang.asm.x86)
  • RE: debugging dynamic code
    ... Cordbg.exe that ships with the framework SDK (including source code I ... the debugger must be inside my app, so iI need to have a debugger that dubug ... depends on how you are referencing your dependant assemblies. ... compile it and debug it. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: introspection in SML
    ... From there you get to source code or you can invoke ... the debugger is typically mostly useless in a ... the time --- I don't expect the Lisp environments to have such ... Compared to untyped languages, ...
    (comp.lang.functional)
  • Re: Debugging Newbie Question
    ... The CLR does not understand this source code and so before it ... ASP.NET, however, ASP.NET will compile your page's source code and cache ... the debugger will have IL and x86 created from ... in release mode assemblies. ...
    (microsoft.public.dotnet.faqs)