Breakpoints are not hit in clang 3.3

Sysprogs forums Forums VisualGDB Breakpoints are not hit in clang 3.3

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #765
    Anonymous
    Participant

    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) ?

    I need my android application to hit the breakpoints and as well as show the values.

    Thanks in Advance.

    #3016
    Anonymous
    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 object

    I need my android application to hit the breakpoints and as well as show the values.

    Thanks in Advance.

    #3017
    ket
    Participant

    Hi,

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.