From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16428 invoked by alias); 14 Mar 2003 14:03:38 -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 16398 invoked from network); 14 Mar 2003 14:03:37 -0000 Received: from unknown (HELO rusfw.rohde-schwarz.com) (80.246.32.32) by sources.redhat.com with SMTP; 14 Mar 2003 14:03:37 -0000 Received: from rus11.rsd.de by rusfw.rohde-schwarz.com via smtpd (for sources.redhat.com [66.187.233.205]) with SMTP; 14 Mar 2003 14:00:30 UT Received: by mail.rohde-schwarz.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256CE9.004CECC3 ; Fri, 14 Mar 2003 15:00:13 +0100 X-Lotus-FromDomain: RSBICK@RUS From: Frank.Christ@RSBICK.rohde-schwarz.com To: gdb@sources.redhat.com Message-ID: Date: Fri, 14 Mar 2003 14:03:00 -0000 Subject: Remote Debugging Of Multithreaded Application on PPC 82xx Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-SW-Source: 2003-03/txt/msg00227.txt.bz2 I am trying to setup a remote debugging session, so that I can debug my multithreaded application running on PPC 82xx and use gdb on my Intel host (i686, SuSE 7.0). I downloaded gdb version 5.3 and compiled gdb on the host (with target powerpc-linux). I also cross-compiled gdbserver (with option powerpc-linux). I have /lib/libthread_db.so.1 on the 8xx have the target filesystem layout available on the host have solib-absolute-prefix set to point to the target libraries (solib-absolute-prefix=/opt/elinos/cdk/ppc/82xx/libc6/powerpc-linux) I can start the gdbserver on the target and gdb on the host and have a connection by tcp/ip. The application is multithreaded and uses the libpthread library. I can put breakpoints in every thread and break into my code. "info threads" gives all my threads and everything seems fine. However: I can step through the main thread, but I cannot step through all my other threads. When I try to step with next in a client thread I get the following message: ------------------------------------- (gdb) next Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 1024] 0x0feee8a4 in nanosleep () from /opt/elinos/cdk/ppc/82xx/libc6/powerpc-linux/lib/libc.so.6 ------------------------------------ Any hints what my be wrong with my configuration? Thanks in advance, Frank Christ