-
Notifications
You must be signed in to change notification settings - Fork 258
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
NDK r11b: the ndk-gdb.py debugger for Mac is not working. #51
Comments
This should be fixed for r11c. In the mean time, you can try applying this patch:
|
Much appreciated. |
The fix does work for the most part. I'm still having trouble with the --launch variation. I can only get that to work once out of every 5 or 6 attempts at best. It launches fine however once I've entered a breakpoint and do a continue. I then get the JDB finished unblockng application and the whole thing comes to a stall with the "Waiting for Debugger" dialog on the device just sitting there. Attaching to an already running process doesn't seem to have any issues now so that part is great. Let me know if there is some flag needed that I'm not aware of or if maybe there is still some issues that need to be worked out. Thanks |
Just to clarify: you've updated to r11c? We shipped this morning. It had a lot of other GDB related fixes as well as the one described in this bug. |
Oh heck. No I didn't see the update. I did the diff from the git diff. I'll update and retry. Thank you |
FYI I set up https://groups.google.com/forum/#!forum/android-ndk-announce if you want notifications of new releases. |
thanks. I'll subscribe. I downloaded. rebuilt everything with r11c. Everything looks good now. the --launch worked right out of the bag. Good job guys. |
Details can also be viewed on a Stack Overflow question I posed a week ago. http://stackoverflow.com/questions/36162583/ndk-r11b-help-needed-using-the-ndk-gdb-py-debugger
Platform Information:
Mac OSX Yosemite;
NDK r11b. SDK target 18-21
my application consists of around 8 c/c++ so files. In the past I've used ndk-gdb (sh) script via NDK r10e. the shell script is now deprecated and ndk-gdb.py
I can successfully get the debugger to either launch the app or attach to a running process. I can pause resume the application with the debugger. Setting a break points at known reliable interrupt points has no effect. It doesn't appear from the behavior that it is finding any source or symbol files.
Some command lines I've tried.
ndk-gdb --launch --verbose This launches the application but blocks on Waiting for debugger
ndk-gdb will attach to a running process. ctr-c will pause the execution but a back trace bt lists a corrupt stack.
ndk-gdb --launch -t -v -p $ProjectDir I get a new interface I'm not familiar with and it states [ No Source Available ]
The only feedback thus far is it appears others are having the same issue but it was discovered and stated that the ndk-gdb.py does work for Linux.
Any help or insight would be appreciated
The text was updated successfully, but these errors were encountered: