-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement debug functions for Linux #1435
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
Conversation
ae462e0 to
2a7e143
Compare
2a7e143 to
ac78acb
Compare
ac78acb to
a7649a5
Compare
a7649a5 to
46fabca
Compare
DrChat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just one change requested.
2807ad6 to
d1dc554
Compare
JoelLinn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it's a small changeset, I tested all these functions and there indeed was an issue. With that fixed everything works.
My recommendation is to merge this immediately after the typo is fixed.
ee4a865 to
a87a414
Compare
Check TracerPid in /proc/self/status for attached debugger. Add SIGTRAP handler to prevent signal from halting app while not running in a debugger. Log DebugPrint in clog (stderr).
a87a414 to
4e9d123
Compare
Check
TracerPidin/proc/self/statusfor attached debugger.Add
SIGTRAPhandler to prevent signal from halting app while not runningin a debugger.
Log
DebugPrintinclog(stderr).