Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
alenlParticipant
Hi
So i can break see call stack and all that i can allso read all my global variables with 4.8 like so
(file main.cpp)
int thisOneWorks = 321; void cocos_android_app_init (struct android_app* app) { sleep(3);//WAIT FOR GDB int iWantToReadYou = 123; LOGD("NUM %d",iWantToReadYou); //<- i break here where i can get 'thisOneWorks ' but not 'iWantToReadYou' LOGD("cocos_android_app_init"); AppDelegate *pAppDelegate = new AppDelegate(); }
Autos window will give me:
cocos_android_app_init 0x73759c4c <_z22cocos_android_app_initp11android_app>
sleep 0x4014c646
And Locals gives me:
+ cocos2d::PHYSICSSHAPE_MATERIAL_DEFAULT {density = 0, restitution = 0.5, friction = 0.5} const cocos2d::PhysicsMaterial cocos2d::kCCPriorityNonSystemMin -2147483647 const int + cocos2d::PHYSICSBODY_MATERIAL_DEFAULT {density = 0.100000001, restitution = 0.5, ...} const cocos2d::PhysicsMaterial + std::__ioinit {_S_refcount = 23, _S_synced_with_stdio = true} std::ios_base::Init cocos2d::kCCPrioritySystem -2147483648 const int thisOneWorks 321 int
alenlParticipantOk so after many trys i got it to work.
All i needed to to is change my toolchain version.
NDK_TOOLCHAIN_VERSION := clang3.3
But i still dont understand why that is?
alenlParticipantIt is a “real” varibable thats for sure
void cocos_android_app_init (struct android_app* app) { sleep(3); int iWantToReadYou = 123; LOGD("NUM %d",iWantToReadYou); LOGD("cocos_android_app_init"); AppDelegate *pAppDelegate = new AppDelegate(); }
Im adding this argument for ndk-build
NDK_MODULE_PATH=E:/mobilesvn/Wacky/cocos2d-x;E:/mobilesvn/Wacky/cocos2d-x/external;E:/mobilesvn/Wacky/cocos2d-x/cocos
i noticed that the console was giving me this:
No symbol "disassembly" in current context. No symbol table is loaded. Use the "file" command.
I allso looked at the log file and found this
~"Reading symbols from C:/Users/Alen/AppData/Local/VisualGDB/AndroidBinaryCache/01bf1190e24af3cc/app_process..." ~"done.n" ~"n" ~"WARNING: no debugging symbols found in C:/Users/Alen/AppData/Local/VisualGDB/AndroidBinaryCache/01bf1190e24af3cc/app_process.n" ~"Either the binary was compiled without debugging informationnor the debugging information was removed (e.g., with strip or strip -g).nDebugger capabilities will be very limited.n" ~"For further information: http://wiki/Main/GdbFaq#No_debugging_symbols_foundn" ~"n"
My Android.mk
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := cocos2dcpp_shared LOCAL_MODULE_FILENAME := libcocos2dcpp #VisualGDBAndroid: AutoUpdateSourcesInNextLine LOCAL_SRC_FILES := ../../Classes/AppDelegate.cpp ../../Classes/HelloWorldScene.cpp hellocpp/main.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static LOCAL_WHOLE_STATIC_LIBRARIES += spine_static LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static include $(BUILD_SHARED_LIBRARY) $(call import-module,2d) $(call import-module,audio/android) $(call import-module,editor-support/spine)
And Application.mk
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11 -fsigned-char NDK_TOOLCHAIN_VERSION := 4.8 APP_ABI := armeabi-v7a
So i guess that i dident get debug symbols at all
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)