Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't WaitForEvent when using IDebugControl::Execute #221

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Conversation

0vercl0k
Copy link
Owner

@0vercl0k 0vercl0k commented Jan 4, 2025

Debugging debugger / symbol related issues is easier when seeing the debugger output in the command line. For that users can turn on the following lines:

// #define SYMOPT_DEBUG 0x80000000
.

Another facility that makes debugging easier is to be able to execute debugger commands like you are in WinDbg via Execute. In the current implementation, after calling IDebugControl::Execute I would WaitForEvent which seems to fail. This isn't a big deal but I've noticed that this has impact on, for example the IDebugSymbol3::GetOffsetByName call where it'll just return a catastrophic failure.

The result is that, you are trying to figure out what's going wrong with your set-up, and maybe you do figure it out; but because GetOffsetByName fails because of the previous WaitForEvent (it seems) then you end up chasing an issue that doesn't exist which is frustrating.

@0vercl0k 0vercl0k merged commit 4988d42 into main Jan 7, 2025
8 checks passed
@0vercl0k 0vercl0k deleted the fbl_dbg branch January 7, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant