When I debug an app written in mostly native code (C++ and some C, multiple shared objects), that uses NativeActivity, ndk-gdb manages to set breakpoints in C++ functions just fine, but it maps code addresses to completely wrong source code locations. If I set a breakpoint at one C++ function that is in no way special as far as I can see, "i b" shows the breakpoint being at /Users/tml/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/exception:61 ... and that is also where it thinks I am when I then hit the breakpoint. (From debugging printouts I do see that I actually am in the function where I set the breakpoint, though.) This makes single stepping through the function a bit pointless, as gdb all the time thinks I am at line 61 in that "exception" header. What could be the problem?
--tml
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/MNTxTlXJZssJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
I work on the Necessitas Qt Android project, maintaining NDK
toolchains and Mac and Windows builds. We use a much more recent GDB
than what Google provide (sources from July of this year):
I'd really appreciate it if you could test to see if your problem
persists with my version:
http://mingw-and-ndk.googlecode.com/files/android-ndk-r6b-gdb-7.3.50.20110709-darwin-x86.7z
I've compressed it as a 7z and because that format isn't supported too
well on Mac OS X, I've also provided a 7z executable (though there's
something called keka that can also be used):
http://mingw-and-ndk.googlecode.com/files/p7zip-macosx.tar.bz2
Best regards,
Ray Donnelly.
p.s. It also contains GCC 4.4.3 recompiled with Graphite support and
GCC 4.6.2 (though this isn't enabled by default yet, and there's no
parameters to ndk-build to select it yet either, hence the WIP
status).
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-ndk/-/c8FP5PvQD64J.
Cool,
There are various support modules needed for python, so rather than trying to mix mine with Google's you should use one or the other. I've included a more recent binutils as well for fixes to thumb debugging info.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/3poMPtoGrloJ.
Ah yeah. A small packaging bug. I will uploaded another version shortly. The fix is to copy system folder from sources/cxx-stl from Google's ndk into mine. I'll post again when uploaded.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/hNZZtLxR1eAJ.
Cheers.
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-ndk/-/C3XBcwtzJJwJ.
http://mingw-and-ndk.googlecode.com/files/android-ndk-r6b-gdb-7.3.50.20110709-darwin-x86.7z
I ran all the tests and they passed. I made cxx-stl a link to my own
rebuild of libstdc++, but also copied the google version to
android-ndk-r6b/sources/cxx-stl-google; just in case. There's also
cxx-stl-4.6.2 there if you wanted to try any C++11 stuff. Just remove
the cxx-stl and relink it to one of the others.
Both toolchains (Google 4.4.3 and Linaro 4.6.2) have been rebuilt with
graphite support. To try this, you should add the following arguments
to g++
For 4.4.3: -floop-block -fgraphite-identity
For 4.6.2: -floop-interchange -floop-strip-mine -floop-block
-fgraphite-identity -floop-parallelize-all
Cheers,
Ray.
Great, thanks for helping me shake out the issues.
If you want to try a full IDE geared for Android C++ development
(either purely NDK and of course supporting Qt), can I recommend you
take a look at Necessitas Qt Creator (usual disclaimer, I work on it).
We released the third alpha (and an update for it which included the
Mac version) recently. Please check the video links and try it out if
you're interested.
Homepage: http://sourceforge.net/p/necessitas/home/necessitas/
Alpha 0.3 announcement:
http://groups.google.com/group/android-qt/msg/77d239196a097f5b
Alpha 0.3 update 1 announcement:
http://groups.google.com/group/android-qt/browse_thread/thread/199000fb8aaaeef7
Installer downloads: http://sourceforge.net/projects/necessitas/files/
NDK development video: http://www.youtube.com/watch?v=DIJQBpPSPB0
Qt App development video: http://labs.qt.nokia.com/2011/02/28/necessitas/
Cheers,
Ray.
p.s. I know Qt's not GTK+ and you've hacked on that in the past, but
don't let that put you off ;-)