From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26961 invoked by alias); 19 Feb 2004 22:21:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16910 invoked from network); 19 Feb 2004 21:58:14 -0000 Received: from unknown (HELO msrvr.intellambda.com) (207.5.82.234) by sources.redhat.com with SMTP; 19 Feb 2004 21:58:14 -0000 Message-ID: <403520CD.3020800@intellambda.com> Date: Thu, 19 Feb 2004 22:21:00 -0000 From: Albert Ho MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: working version of gdb(x86) and gdbserver(ppc)? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00255.txt.bz2 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