Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
  • Sign in / Register
pykd
pykd
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 14
    • Issues 14
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • pykd
  • pykdpykd
  • Issues
  • #39

Closed
Open
Opened Jan 25, 2019 by Jun Chen@jun
  • Report abuse
  • New issue
Report abuse New issue

[Proposal] attachProcess need an initial break

The following pseudocode works well before 0.3.3.0. But it will hang in the method pykd.attachProcess since 0.3.3.0.

pykd.initialize()
pykd.attachProcess(pid)

# do some work such as executing pykd.dbgCommand(cmd)

pykd.detachProcess(pid)

The issue can be fixed by adding the initial break in the function attachProcess in dbgeng.cpp as below

ULONG opt;
hres = g_dbgMgr->control->GetEngineOptions(&opt);
if (FAILED(hres))
    throw DbgEngException(L"IDebugControl::GetEngineOptions", hres);

opt |= DEBUG_ENGOPT_INITIAL_BREAK;
hres = g_dbgMgr->control->SetEngineOptions(opt);
if (FAILED(hres))
    throw DbgEngException(L"IDebugControl::SetEngineOptions", hres);
Edited Jan 25, 2019 by Jun Chen
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: pykd/pykd#39