From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20449 invoked by alias); 3 Jun 2009 03:17:10 -0000 Received: (qmail 20438 invoked by uid 22791); 3 Jun 2009 03:17:09 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f199.google.com (HELO mail-px0-f199.google.com) (209.85.216.199) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Jun 2009 03:17:03 +0000 Received: by pxi37 with SMTP id 37so9048980pxi.12 for ; Tue, 02 Jun 2009 20:17:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.28.8 with SMTP id f8mr163878wfj.227.1243999022016; Tue, 02 Jun 2009 20:17:02 -0700 (PDT) In-Reply-To: <8ac60eac0906021242p4d908056x18e42bbb7603a514@mail.gmail.com> References: <1531E53627F1F749B4FE809BF2A4EB67FABA56@WETMEX10.loepfe.com> <1531E53627F1F749B4FE809BF2A4EB67FD9F52@WETMEX10.loepfe.com> <8ac60eac0906020941w3064fa70l263b316358c9e38f@mail.gmail.com> <20090602181723.GA11310@caradoc.them.org> <8ac60eac0906021134u49cf0612uc26fb04bde4a6025@mail.gmail.com> <8ac60eac0906021242p4d908056x18e42bbb7603a514@mail.gmail.com> Date: Wed, 03 Jun 2009 03:17:00 -0000 Message-ID: Subject: Re: Q: GDB - Threads From: Hui Zhu To: "Vellemans, Noel" Cc: gdb@sourceware.org, Paul Pluzhnikov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-06/txt/msg00024.txt.bz2 On Wed, Jun 3, 2009 at 03:42, Paul Pluzhnikov wrote: > On Tue, Jun 2, 2009 at 11:34 AM, Paul Pluzhnikov wrote: > >> I guess then OP needs to verify that GDB is loading symbols from expected >> libpthread ("set verbose on" should show that), and that gdbserver on target >> is loading expected libthread_db ("ldd gdbserver" on target should show >> that). > > Oh, and one very common mistake is to strip libpthread before it is uploaded > to target. Make sure libpthread *on target* has not been stripped. In > particular, it should have some local *_version symbol. > I remember in remote debug, libpthread striped or not is not very important. Noel, you are use remote debug right? If so, I suggest: 1. Make sure you gdbserver in target link with libthread_db is OK. You can check it with ldd. 2. Make sure you gdb in host use right lib. Sometime, the host and target use different lib. If so, you need copy the lib in target to host, and then you can use command "set solib-search-path" or "set sysroot" in gdb to let gdb load right lib. And you need make sure libpthread that gdb load (in host) is not striped. Thanks, Hui