From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14713 invoked by alias); 17 Dec 2009 18:53:01 -0000 Received: (qmail 14702 invoked by uid 22791); 17 Dec 2009 18:53:01 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Dec 2009 18:52:57 +0000 Received: from spaceape8.eur.corp.google.com (spaceape8.eur.corp.google.com [172.28.16.142]) by smtp-out.google.com with ESMTP id nBHIqsc4012181 for ; Thu, 17 Dec 2009 18:52:54 GMT Received: from qyk27 (qyk27.prod.google.com [10.241.83.155]) by spaceape8.eur.corp.google.com with ESMTP id nBHIqoCa032194 for ; Thu, 17 Dec 2009 10:52:51 -0800 Received: by qyk27 with SMTP id 27so1068626qyk.20 for ; Thu, 17 Dec 2009 10:52:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.33.195 with SMTP id i3mr1806520qad.386.1261075970253; Thu, 17 Dec 2009 10:52:50 -0800 (PST) In-Reply-To: <597A11B8CF75534EBE76656E186BF106E01401@stella.stratos.local> References: <597A11B8CF75534EBE76656E186BF106E0135E@stella.stratos.local> <8ac60eac0912162044k34bc2765ja16c74274141275a@mail.gmail.com> <597A11B8CF75534EBE76656E186BF106E013E6@stella.stratos.local> <8ac60eac0912171018h67548c94x1ce63904b9f6d136@mail.gmail.com> <597A11B8CF75534EBE76656E186BF106E01401@stella.stratos.local> Date: Thu, 17 Dec 2009 18:53:00 -0000 Message-ID: <8ac60eac0912171052h4b187f79qef9cec04ef2ae791@mail.gmail.com> Subject: Re: Cross-platform, multithreaded debugging (x86 to ARM) with gdb and gdbserver not recognizing threads From: Paul Pluzhnikov To: Jason Machacek Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00104.txt.bz2 On Thu, Dec 17, 2009 at 10:38 AM, Jason Machacek wr= ote: > Sorry about that, I misread your last message. =A0libpthread.so isn't > stripped: > > $ /opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/bin/arm-linux-nm > libpthread-0.10.so | egrep 'version|threads_events' > 0000de40 r __linuxthreads_version > 00018e68 b __pthread_threads_events AFAIU, this is the host copy of libpthread. One common mistake is stripping it *on target*. Hence I asked to copy it back and run nm on what is actually on target. Of course you could just 'ls -l' or md5sum to verify that host and target copies are identical. > Yes, I did mean that I statically linked my application with libc.a. > Perhaps I'll reexamine my build environment as this may be the root of > my problems with GDB. =A0When running GDB natively on my target, I had no > problems debugging my application despite it being statically linked. Was it on the same target you are using now? (That would rule out stripped libpthread, or libpthread/libthread_db mismatch, as gdb and gdbserver should be similarly broken.) Cheers, --=20 Paul Pluzhnikov