Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* working version of gdb(x86) and gdbserver(ppc)?
@ 2004-02-19 22:21 Albert Ho
  2004-02-19 23:05 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Albert Ho @ 2004-02-19 22:21 UTC (permalink / raw)
  To: gdb

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


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

end of thread, other threads:[~2004-02-20  1:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19 22:21 working version of gdb(x86) and gdbserver(ppc)? Albert Ho
2004-02-19 23:05 ` Daniel Jacobowitz
2004-02-19 23:23   ` Albert Ho
2004-02-19 23:24     ` Daniel Jacobowitz
2004-02-20  0:52       ` Albert Ho
2004-02-20  1:06       ` Albert Ho

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