Sysprogs forums › Forums › VisualGDB › Breakpoints are not hit in clang 3.3
- This topic has 2 replies, 2 voices, and was last updated 12 years ago by
ket.
-
AuthorPosts
-
March 24, 2014 at 07:41 #765
Anonymous
ParticipantHi,
I am using the trail version of visual GDB.
I am building my Android app and I am facing a pretty weird scenario.
In my Application.mk when I mention NDK Version as 4.8 it hits the set breakpoints, but does not show any values in debug.
When I change it to clang 3.3 it very well shows the values but does not hit the set breakpoints.Can please some one help in solving this puzzle.
–What toolchain is to be set(I android application is x86 based and so I need to compile my sse code) ?I need my android application to hit the breakpoints and as well as show the values.
Thanks in Advance.
March 24, 2014 at 07:52 #3016Anonymous
Participant@faizan.oct@gmail.com wrote:
Hi,
I am using the trail version of visual GDB.
I am building my Android app and I am facing a pretty weird scenario.
In my Application.mk when I mention NDK Version as 4.8 it hits the set breakpoints, but does not show any values in debug.
When I change it to clang 3.3 it very well shows the values but does not hit the set breakpoints.Can please some one help in solving this puzzle.
–What toolchain is to be set(I android application is x86 based and so I need to compile my sse code) ?
–Here is the message i get from my GDB session when i debug -var-create: unable to create variable objectI need my android application to hit the breakpoints and as well as show the values.
Thanks in Advance.
March 24, 2014 at 16:36 #3017ket
ParticipantHi,
The values are not shown with the 4.8 toolchain due to a known issue with the toolchain. The gcc and gdb versions of the Android NDK 4.8 toolchain are too far apart and default to different debug symbol versions. Please add -gdwarf-3 to LOCAL_C_FLAGS in Android.mk. This flag forces gcc to produce debug info in an older format compatible with the older gdb and should fix the issue. Please rebuild your project with this flag before trying debugging again with the 4.8 toolchain.
As for the breakpoints not being hit with clang 3.3, we would need to see the full gdb log to diagnose that issue. Please enable gdb logging on the GDB settings page in VisualGDB Project Properties. Then start debugging, replicate you scenario (make sure some breakpoints were set), stop debugging and give us the log from your project directory.
Please note, that if you are debugging code that is executed very early in the app startup, then try enabling the Android->Debug Options->Debug App Startup option.
-
AuthorPosts
- You must be logged in to reply to this topic.