How Can I Debug A preload.so for 3rd Party With VSCode? #10313
Unanswered
zxcvbnm3057
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am tring to debug a .so which will be load by a 3rd party program, which I do NOT have source code and of cource wasn't compile with gcc -g. Maybe I should use attaching mode, but I dont know how to attach a preload dynamic library of a 3rd program. So I was trying the launch mode. However, I cant get into any of my breakpoint. Here is some code and setting from my program. Please tell me where did i miss.
launch.json
and this hack function in my source code:
The string print normally but breakpoint was never hit.
I keep getting this warnning when I try to use gdb manually
warning: Error disabling address space randomization: Operation not permitted
Any help?
Beta Was this translation helpful? Give feedback.
All reactions