From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22099 invoked by alias); 2 Jun 2009 16:41:35 -0000 Received: (qmail 22091 invoked by uid 22791); 2 Jun 2009 16:41:34 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,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; Tue, 02 Jun 2009 16:41:25 +0000 Received: from zps35.corp.google.com (zps35.corp.google.com [172.25.146.35]) by smtp-out.google.com with ESMTP id n52GfLsL006238 for ; Tue, 2 Jun 2009 17:41:22 +0100 Received: from pzk5 (pzk5.prod.google.com [10.243.19.133]) by zps35.corp.google.com with ESMTP id n52Gf2cr024326 for ; Tue, 2 Jun 2009 09:41:19 -0700 Received: by pzk5 with SMTP id 5so801413pzk.11 for ; Tue, 02 Jun 2009 09:41:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.204.11 with SMTP id b11mr1484530wfg.257.1243960879656; Tue, 02 Jun 2009 09:41:19 -0700 (PDT) In-Reply-To: <1531E53627F1F749B4FE809BF2A4EB67FD9F52@WETMEX10.loepfe.com> References: <1531E53627F1F749B4FE809BF2A4EB67FABA56@WETMEX10.loepfe.com> <1531E53627F1F749B4FE809BF2A4EB67FD9F52@WETMEX10.loepfe.com> Date: Tue, 02 Jun 2009 16:41:00 -0000 Message-ID: <8ac60eac0906020941w3064fa70l263b316358c9e38f@mail.gmail.com> Subject: Re: Q: GDB - Threads From: Paul Pluzhnikov To: "Vellemans, Noel" Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-06/txt/msg00008.txt.bz2 On Tue, Jun 2, 2009 at 8:27 AM, Vellemans, Noel wrote: > Still not able to debug a MT-application :-( > Anyone that can help me 'little' further ?? There is (I think) a very high probability that your GDB did not load correct libthread_db. > Both libs have been build on the same system.. (buildroot).. > Even started from scratch.... > 88 -rw-r--r-- 1 noel noel 82178 2009-06-02 16:23 libpthread-0.9.30.1.so > 16 -rw-r--r-- 1 noel noel 13171 2009-06-02 16:23 libthread_db-0.9.30.1.so The identical time stamp implies that these were both installed at the same time, which means they are both built for *target*. But you need an identical libthread_db built for *host*. This is because GDB (on host) will try to dlopen() libthread_db (which helps it debug *target* libpthread). Once you build correct libthread_db, you'll likely need to adjust LD_LIBRARY_PATH for GDB to actually find it at runtime. To see which (if any) libthread_db GDB is loading now do this: in a separate window execute 'grep libthread_db /proc//maps' Cheers, -- Paul Pluzhnikov