Compiling GDB for ARM based Android Platform

604 views
Skip to first unread message

Akshat Saha

unread,
Nov 22, 2011, 7:59:30 AM11/22/11
to 0xlab...@googlegroups.com

Hi,

I want to compile gdb for ARM based Android platfrom. I am using Ubuntu 10.10 64-bit host machine.
I have cloned the source from https://gitorious.org/android-toolchain/gdb.

Steps followed to compille:
  1. ./configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi
  2. make
The resulting binary I get, is a shared executable. And while running on emulator, gives a "not found" error.

I have exported CodeSourcery's Toolchain(2008q3).

Please guide me on how to proceed, or where I am wrong.

-- 
Thanks in Advance
Akshat 



Jim Huang

unread,
Nov 22, 2011, 8:51:28 AM11/22/11
to 0xlab...@googlegroups.com
2011/11/22 Akshat Saha <akshat....@gmail.com>:

> Hi,
>
> I want to compile gdb for ARM based Android platfrom. I am using Ubuntu
> 10.10 64-bit host machine.
> I have cloned the source from https://gitorious.org/android-toolchain/gdb.
> Steps followed to compille:
[...]

Hi,

To help you to have better understanding of cross gdb for Android,
please refer to the build process in NDK (directory ndk/ in AOSP
source).

Thanks,
Jim Huang (jserv)
http://0xlab.org/

Alison Chaiken

unread,
Nov 22, 2011, 3:12:26 PM11/22/11
to 0xlab...@googlegroups.com, akshat....@gmail.com
Akshat Saha <akshat....@gmail.com> asks:

> The resulting binary I get, is a shared executable. And while running on
> emulator, gives a "*not found"* error.

I found these instructions useful in solving the same problem:

http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html

The new Karim Yaghmour book, _Embedded Android_ from O'Reilly, is also
an excellent resource.

HTH,
Alison

--
Alison Chaiken
(650) 279-5600  (cell)
             http://www.exerciseforthereader.org/
"If you're going to fight an uphill battle, pick a short hill." -- Larry Tesler

Reply all
Reply to author
Forward
0 new messages