public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Problem using gdbserver on ARM target
@ 2006-05-04 12:05 Chetan Kapoor
  2006-05-04 14:03 ` Daniel Jacobowitz
  2006-05-04 15:37 ` Marc Singer
  0 siblings, 2 replies; 4+ messages in thread
From: Chetan Kapoor @ 2006-05-04 12:05 UTC (permalink / raw)
  To: linux-omap-open-source, linux-arm-toolchain, linux-arm-kernel

Hello

I am trying bring up gdbserver on my ARM target (OMAP P2 730).

I downloaded a prebuilt toolchain which contains gcc 3.3.2-glibc-2.3.2 + 
binutils-head. We have used this to build   Kernel version 2.6.16-omap1 & 
Busybox-1.0.0.

I have now compiled gdb 6.4 pack, and crosscompiled the gdb with 
--target=arm-linux
For gdbserver in the gbb/gdbserver directory I configured using 
--host=arm-linux 

A make is successful but the dynamically linked ARM executable gives the 
following error when I execute it on the target,

~ # ./gdbserver
-sh: ./gdbserver: No such file or directory

I have noted that the gdbserver executable has been loaded successfully to 
the target yet I am not able to execute it. 

On the host I verified,

# file gdbserver
ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, 
dynamically linked (uses shared libs), not stripped

Any clues as to what is going wrong here ? 

It seems that the gdbserver dynamically linked executable is looking for a 
few shared libraries to be in place in the target's rootfs. I tried 
keeping the required libraries (libc-2.3.2.so, libthread_db-1.0.so, 
libcrypt-2.3.2.so and related symlinks)at path /usr/local/arm/3.3.2/lib on 
the target's rootfs to relsove the issue. This time the gdbserver launches 
but gives a segmentation fault.

Someone suggested that first I should get libthread_db compiled as a 
static library (i.e. libthread_db.a), and then build a statically linked 
gdbserver executable which includes libthread_db.a. 

I have a prebuilt toolchain for which I do not have the source code, and 
libthread_db.a is not present in the toolchain's lib folder, rather 
libthread_db.so is present. Any pointers, where can I get the toolchain's 
source and use it to build static librares?, which will in turn be useful 
in building statically linked gdbserver.

Thanks

Chetan

***********************  FSS-Unclassified   ***********************

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-04 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-04 12:05 Problem using gdbserver on ARM target Chetan Kapoor
2006-05-04 14:03 ` Daniel Jacobowitz
2006-05-04 14:41   ` Chetan Kapoor
2006-05-04 15:37 ` Marc Singer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox