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

Change printf behavior using a debugger present sentinel. #443

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

cnlohr
Copy link
Owner

@cnlohr cnlohr commented Nov 11, 2024

  1. Make the default behavior on hard fault to wait forever, and then print the error.
  2. Add DidDebuggerAttach().
  3. Increase printf timeout, since it won't trigger if a debugger is not attached.

For printf:

  1. Printf will wait up to 120ms at boot.
  2. If printf has timed out, it will immediately continue.
  3. If a debugger is reattached, it will keep printing.
  4. If a debugger is attached, it will wait up to 120ms. Then continue at full speed.

2. Make the default behavior on hard fault to wait forever, and then print the error.
3. Add DidDebuggerAttach().
4. Increase printf timeout, since it won't trigger if a debugger is not attached.
@cnlohr cnlohr force-pushed the modify_printf_behavior branch from fdbec8a to 4261e90 Compare November 11, 2024 21:23
@cnlohr cnlohr force-pushed the modify_printf_behavior branch from 4261e90 to a2d7c23 Compare November 11, 2024 21:24
1. Printf will wait up to 120ms at boot.
2. If printf has timed out, it will immediately continue.
3. If a debugger is reattached, it will keep printing.
4. If a debugger is attached, it will wait up to 120ms. Then continue at full speed.
@cnlohr cnlohr merged commit 69801af into master Nov 13, 2024
152 checks passed
@cnlohr cnlohr deleted the modify_printf_behavior branch November 13, 2024 11:10
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