User forums > Using Code::Blocks

Using of arm-linux-androideabi-gdb

(1/4) > >>

SteelRat:
Trying to debug Android app. Application was built by C::B with modified "Arm Compiler" adapted for Android.
In the shell i can connect to remote "gdbserver" and at least kill app. C::B can connect too, but it can't do anything. And i can't start debug without typing something in "Project->Set program's arguments...". Yes, for C::B it's just shared library, but i don't need to set any executable for it when debugging Android.

oBFusCATed:
Have you setup your project for remote debugging? ( project -> properties -> debugger -> remote connection)

SteelRat:
Yes, it connects. I'm using IP: localhost Port: 5039 with checked "Connect with extened-remote". I suspect that some things are works. gdbserver stops by unknown reason (may be breakpoint was set) and then i click "Continue" and application runs, but C::B still thinks that app is paused - step buttons are active.

oBFusCATed:
Can you post the full log from the debugger (you should enable it in the Settings -> Debugger)

SteelRat:
I ran gdbserver, app stops. Then i ran debug in C::B and app continues. You can see it in last line of log. By the way, my source code is above project's dir, in ../../src relative to C::B project. And i still don't know what to do with "Program's arguments".

--- Code: ---Building to ensure sources are up-to-date
Selecting target:
Android Debug
Adding source dir: /home/steelrat/projects/gipe/build/cbp/
Adding source dir: /home/steelrat/projects/gipe/
Adding source dir: /home/steelrat/projects/kangoo/build/cbp/
Adding source dir: /home/steelrat/projects/kangoo/
Adding file: libcroger_d.so
Changing directory to: /home/steelrat/projects/kangoo/bin
Set variable: LD_LIBRARY_PATH=.:/home/steelrat/projects/gipe/lib:/home/steelrat/projects/gipe/deps/minizip:/home/steelrat/development/android/ndk/sources/sfml/lib/armeabi:/home/steelrat/projects/gipe/lib/android/armeabi:/home/steelrat/development/android/ndk/sources/lua/lib/armeabi:/home/steelrat/development/android/ndk/sources/oolua/lib/armeabi:/home/steelrat/development/android/ndk/sources/box2d/lib/armeabi:/home/steelrat/development/android/ndk/sources/minizip/lib/armeabi:

[debug]Command-line: /home/steelrat/development/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb -nx -fullname  -quiet  -args libcroger_d.so
[debug]Working dir : /home/steelrat/projects/kangoo/bin

Starting debugger: /home/steelrat/development/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb -nx -fullname  -quiet  -args libcroger_d.so
done

[debug]libcroger_d.so: No such file or directory.
[debug](gdb)
[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Connecting to remote target
Setting breakpoints

[debug]>>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.6
[debug]Copyright (C) 2013 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
[debug]For bug reporting instructions, please see:
[debug]<http://source.android.com/source/report-bugs.html>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.6

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]No symbol table is loaded.  Use the "file" command.
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]No symbol table is loaded.  Use the "file" command.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /home/steelrat/projects/gipe/build/cbp/
[debug]Source directories searched: /home/steelrat/projects/gipe/build/cbp:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/steelrat/projects/gipe/
[debug]Source directories searched: /home/steelrat/projects/gipe:/home/steelrat/projects/gipe/build/cbp:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/steelrat/projects/kangoo/build/cbp/
[debug]Source directories searched: /home/steelrat/projects/kangoo/build/cbp:/home/steelrat/projects/gipe:/home/steelrat/projects/gipe/build/cbp:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/steelrat/projects/kangoo/
[debug]Source directories searched: /home/steelrat/projects/kangoo:/home/steelrat/projects/kangoo/build/cbp:/home/steelrat/projects/gipe:/home/steelrat/projects/gipe/build/cbp:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> target extended-remote tcp:localhost:5039
[debug]Remote debugging using tcp:localhost:5039
[debug]0x400caa90 in ?? ()
[debug]>>>>>>cb_gdb:

Connected

[debug]> continue

In ?? () ()

[debug]> continue
[debug]Continuing.

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version