From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27582 invoked by alias); 15 Jun 2006 10:21:38 -0000 Received: (qmail 27573 invoked by uid 22791); 15 Jun 2006 10:21:37 -0000 X-Spam-Check-By: sourceware.org Received: from web42106.mail.mud.yahoo.com (HELO web42106.mail.mud.yahoo.com) (209.191.86.239) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 15 Jun 2006 10:21:36 +0000 Received: (qmail 82543 invoked by uid 60001); 15 Jun 2006 10:21:34 -0000 Message-ID: <20060615102134.82541.qmail@web42106.mail.mud.yahoo.com> Received: from [203.193.55.70] by web42106.mail.mud.yahoo.com via HTTP; Thu, 15 Jun 2006 03:21:34 PDT Date: Thu, 15 Jun 2006 13:59:00 -0000 From: Peter Choi Subject: gdb remote debugging with threads To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00091.txt.bz2 Hi, Excuse me. I know GDB should have supported remote debugging with multi-threads, but I still encounter problem. I'm using GDB 6.3 (host=target=i686), case (1): I compile my program with shared library. To make the environment simple, I make the host computer and target computer two identical platform (ie. same i686 cpu and same library path). But when I run remote debugging, the following are reported: On the host computer running GDB, it reported: "warning: .dynamic section for "/lib/ld-linux.so.2" is not at the expected address. and when I use "info threads", I cannot see all other threads I have created during the execution. case (2): I compile my program with static library. Still use two identical platform as my host and target computer. But when I run remote debugging, the following are reported: On the target computer side, it reported: "cannot find new threads: generic error". On the host computer side, it reported: "Ignoring packet error, continuing". And again, when I use "info threads", I cannot see all other threads I have created during the execution. Please advise anyone have any idea how to get around this????? Please advise. Thank you for your attention. Regards. Peter Choi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com