This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
working version of gdb(x86) and gdbserver(ppc)?
- From: Albert Ho <alberth at intellambda dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 19 Feb 2004 12:47:09 -0800
- Subject: working version of gdb(x86) and gdbserver(ppc)?
Hi,
I wonder if anyone out there can share their remote debugging setup
config that works.
The host is x86(P4).
The target is ppc(8270).
Info from kernel version, gcc version, libc version, pthread library
version is appreciated.
I tried to have gdb and gdbserver between 2 identical machine(RH9,
x86) without luck.
Same result as with RH9's gdb and gdb 6.0 pulled from
www.gnu.org/software/gdb.
==============gdbserver================
[root@pc19 bin]# ./gdbserver :5000 foo
Process foo created; pid = 4963
Remote debugging from host 192.168.0.50
Cannot find new threads: generic error
Cannot find new threads: generic error
Cannot find new threads: generic error
Child terminated with signal = 5
Child terminated with signal = 0x0
GDBserver exiting
==========================gdb==========================
(gdb) c
Continuing.
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
(gdb)
========================================================
Then I looked into the gdb archive, played around with the
solib-absolute-path.
Not much difference there. I even strace the lib opened by gdbserver and
gdb.
They open different libraries. Do they suppose to open the same shared lib?
gdbserver:
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/tls/libthread_db.so.1", O_RDONLY) = 3
^^^^^^^^^^^^^^^^^
open("/lib/tls/libc.so.6", O_RDONLY) = 3
gdb:
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 7
open("/lib/ld-linux.so.2", O_RDONLY) = 8
open("/lib/tls/libpthread.so.0", O_RDONLY) = 9
^^^^^^^^^^^^^^^
open("/lib/tls/libpthread-0.26.so.debug", O_RDONLY) = -1 ENOENT (No such
file or directory)
Thanks
Albert