none
Implement .ecxr command with Windbg API RRS feed

  • Question

  • How to implenent .ecxr command with Windbg API

    In other words how to get the exception's context in the dump file and set it as current?

    Thanks


    Saturday, February 20, 2016 11:23 AM

All replies

  • With windbg API, there's some function that executes a given command on the target. If  the .ecxr command or other command does what you want - make sure that the target is ready, then invoke that command.

    - pa

    Saturday, February 20, 2016 9:14 PM
  • You already tried IDebugControl4::GetStoredEventInformation
    MiniDumps and "Bad" Stacks
    http://blogs.msdn.com/b/joshpoley/archive/2008/11/10/minidumps-and-bad-stacks.aspx
    probably:
    IDebugAdvanced::SetThreadContext
    https://msdn.microsoft.com/en-us/library/windows/hardware/ff556829(v=vs.85).aspx
    Here is a c# sample of an application mentioned above by Pavel (I suppose). Just use IDebugClient::OpenDumpFile:
    http://blogs.microsoft.co.il/pavely/2015/07/27/writing-a-simple-debugger-with-dbgeng-dll/

    with kind regards


    Saturday, February 20, 2016 9:45 PM
  • Just to make it clear, that is  Pavel Yosifovich, MVP. Not me.

    Saturday, February 20, 2016 11:05 PM