Initiation of a Debugger using CreateProcess



Hi,
I'm intending to write a private debugger for my own use, but it must be
started with CreateProcess, how can I retrieve and control its "context"
such as the base address loaded by the Windows Loader? Is it possible to
disassemble the exe in this way? Also, how can I implement the feature of
VB6 debugger (called JIT?)such that I can control the context outside the
debugger when the debugger is waiting on an event? (so that I can switch to
other programs) I have encountered this problem when using Softice... For
example, when Softice is "doing" something, other processes are freezed and
you jump out of it (Ctrl-D) and come back later, (because of its sticky
feature), the current address of the debuggee would have changed, and it is
looking at something else than what I was doing before.... quite subtle,
hope you understand...
Thanks
Jack


.



Relevant Pages

  • Re: GetThreadContext and debug register problem
    ... debugger while my app is executing. ... debugger could go into debug mode is setting debug registers and generating ... CONTEXT structure, and then pass it to SetThreadContext. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to print an array of char backward.
    ... My point here is that it would not for me in the context of the ... layout and debugger friendly layout is a must. ... As one of the people whose "honesty and motivations" I thought you ...
    (comp.lang.c)
  • Re: GetThreadContext and debug register problem
    ... A decent app should not care about debugger. ... debugger could go into debug mode is setting debug registers and ... originally used the kernel debug to trigger the debug registers as I ... CONTEXT structure, and then pass it to SetThreadContext. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to print an array of char backward.
    ... does not understand something x&1 or shift right/left then they have no ... My point here is that it would not for me in the context of the ... I can't get worked up about layout, just as I can't get worked up ... layout and debugger friendly layout is a must. ...
    (comp.lang.c)
  • Re: VW7.3.1 willSendSuper problem
    ... If you have any other questions about the debugger ... > super initialize. ... > which is where I'm at in my current context. ...
    (comp.lang.smalltalk)

Loading