Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Albert Ho <alberth@intellambda.com>
To: gdb@sources.redhat.com
Subject: working version of gdb(x86) and gdbserver(ppc)?
Date: Thu, 19 Feb 2004 22:21:00 -0000	[thread overview]
Message-ID: <403520CD.3020800@intellambda.com> (raw)

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


             reply	other threads:[~2004-02-19 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 22:21 Albert Ho [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=403520CD.3020800@intellambda.com \
    --to=alberth@intellambda.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox