Debugging a haxe based ndk app on android with gdb

I am trying to debug a openfl/haxe app on android with gdb. Since haxe/openfl compiles to c++ which is then compiled using the ndk, I am basically trying to debug an ndk app.

I got gdbserver attached to the apps process and can remote debug it using arm-linux-androideabi-gdb. But as soon as I try to get a backtrace (the app is running fine at this moment), I get this:

#0 0xb6e70b10 in ?? () #1 0xb6e4833c in ?? () #2 0xb6e4833c in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

I understand that this can happen when I corrupted the stack by using bad pointers, but since the app is running fine (am actually looking for a runtime error, not a crash), that is not the case.

Category:c# Views:1 Time:2018-12-15

Related post

  • Debugging native apps on Android, with GDB 2011-06-22

    I'd like to debug a native application for Android, like, for example, the standard browser app. How can I do that, with GDB (or any other debugger). I would prefer a solution for a real device, not an emulator, but the latter is fine too, if the fir

  • I want to develop an music player app for android with multitasking so dat i can use differtent apps without closing music player-help out plzz 2011-01-13

    I want to develop an music player app for android with multitasking so dat i can use differtent apps without closing music player......help out plzz.. --------------Solutions------------- To have it to continue to play music in the background, you wi

  • in app purchase android with adobe air 2011-09-06

    I need to write an app for Android with Adobe AIR with payments capabilities. So I want to give user ability to buy some products in application. In iOS - there is In App Purchase, in Android - Google checkout. So the question is: can I use google ch

  • How to debug an App on Android with GDBSERVER? 2010-01-13

    I'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command. There's a million blog hits on t

  • Debugging Android with GDB 2010-09-29

    I am trying to debug rild.c deamon with gdb.I followed the steps given in developer site with respect to gdbserver and gdb.After the connection is established between gdbserver and gdb in localhost iam not able to step in GDB i,e when i give next or

  • Loading markers from outside the app in android with QCAR 2012-03-15

    how i can load markers at run time outside app in android using Qcar? --------------Solutions------------- I loaded the image targets in the sample project 'ImageTargets' from the sd card. In the ImageTargets.cpp file (in jni folder) U will find the

  • How to debug an Dalvik executable on Android with GDB? 2011-05-10

    I want to debug an android application using GDB, I do not have the source code and I am used to GDB. Would anyone know how to do that? It seems I would need to attach to the process of the application and use gdbserver but I have not really found a

  • Developing mobile app for android 2010-11-22

    I am developing a mobile app for android, with eclipse as my platform. Whenever I use the back button of the mobile using the emulator, the app closes. I want to just go back to the previous page, but it exits the app. How can I do it? I really hope

  • Action Script 3 App for Android - Block device buttons? 2011-06-10

    Hy, i am developing an app to Android with Action Script 3. In some point of my app, i need to block the phisycal buttons of the device ( volume buttons, power button, and any other buttons who the device might have )... It's possible to do this with

  • Python App Engine projects with sophisticated user-role-permission structures 2009-06-06

    In followup to an earlier question, I'd be interested to know whether anyone can recommend some open-source Python-based Google App Engine projects with complex user-role-permission models to consult as a reference. A link to the code would be nice.

  • Debugging IPhone with GDB 2011-04-24

    I've an IPhone (iOS 4.2.1). I'd like to debug apps on it, with gdb. I understand that's easy (?) with XCode, when being a registered developer. I'm not a registered dev., and I don't want to be one. To be more specific, I want to be able to attach to

  • How to run a Dalvik executable with GDB on Android? 2011-05-06

    I want to debug an application on Android with GDB, I can hook on it with gdb and the process number but I want to see what it does from the start. Would there be any way to do that? --------------Solutions------------- On a rooted device or emulator

  • How to run and debug C++ application in Eclipse that's started with a script? 2011-02-16

    I'm trying to use Eclipse CDT on Ubuntu for C++ development. I'm working on a large C++ project that leverages Tcl as a scripting language to kick off and control the application. How can I configure Eclipse to launch the application using shell scri

  • Unable to debug with gdb under Android and NDK, starting Gdb crashes App 2011-12-26

    I'm having problems trying to debug native code with the Android NDK. While the App is running I launch ndk-gdb, and the result is that gdb loses the connection with the device and the app on the device crashes. The very same thing happens with both

  • Good Android based IDE for developing Android apps 2010-07-19

    OK, there is at least one, arguably more, PC based IDE for developing Android apps. But now that Android based tablets are becoming common, what's a good IDE for developing Android apps - in Android? Edit: I'd be more than happy to use Eclipse if it

  • Error launching Android NDK app 2011-08-01

    I've written a NativeActivity that's crashing on launch because (my theory...) I'm doing something wrong naming the shared library or the module or something in AndroidManifest.xml. Below is the output of LogCat when my app is launched, along with th

  • why i get wrong argc value in android ndk app? 2011-08-25

    the c file is mytest.c: include "stdio.h" include "stdlib.h" int main(int argc, char** argv) { int i=1; i+=2; printf("Hello, world (i=%d)!\n", i); printf("argc=%d\n", argc); exit(0); } and the Makefile is: APP := mytest ROOT := /opt INSTALL_DIR := /d

  • what is the difference between ndk-build and make APP for android? 2010-11-18

    I am having too many confusions in native coding for android. My application wants to play mms:// stream and I'm facing some serious problems in that. But the basic question is What is the difference between ndk-build (that i usually use) and make AP

  • I want to develop a socket based chatting app in Titanium compatible with Android, iPhone and Blackberry 2013-02-09

    I want to develop a socket based chatting app in Titanium compatible with Android, iPhone and Blackberry. Please give me suggestion about it --------------Solutions------------- If you want a "socket based chatting app", then you've already made deci

  • How can I determine if an Android app is built with a web view? 2011-05-18

    I am new with Android programming and I am investigation the various approaches to built an app. Right now I am learning native app development using Eclipse and ADT but I also wish to look at webviews and their possibilities. Either done directly us

  • Creating temporary files in Android with NDK 2011-09-29

    I am currently working on a C-based, NDK-based, Android application. This application needs to create temporary files. On a regular Linux system, I would use tmpfile to ensure that these files are properly created in a temporary directory and cleaned

  • How to run AIR desktop app on Android (Galaxy Tab 10.1)? 2011-12-06

    I have a problem - How to run AIR (really big desktop application) on my Galaxy Tab 10.1? It's possible convert .air to .apk? EDIT: 1. I set up a new desktop project (File -> New -> Flex Project) 2. Project name is "simpleTest", Application typ

  • Porting iPhone App to Android platform 2012-02-09

    I am trying to get my iPhone App on Android platform as well. I was wondering if there is anyway I can directly port my iPhone App or Code to Android? Do I need to write whole App from the scratch for Android platform or is there anyway I can reduce

  • Best way to debug Javascript on an iPhone app? 2009-06-09

    I'm doing some rough development on the iPhone. I'm writing a native iPhone app, which uses an UIWebView object to load web sites with javascript. I find very difficult to debug the javascript code on an iPhone. What are the methods/techniques availa

  • debugging native code (C++) using gdb on android with Eclipse. Is it possible? 2010-05-24

    I have some piece of code which uses JNI. I can debug code wrote in Java directly in Eclipse (using ADT). I even have a script, which help me debug native code with gdb. However this is not very comfortable way for doing this. Is it possible to confi

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.172 (s). 11 q(s)