From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14610 invoked by alias); 16 Jan 2009 23:34:39 -0000 Received: (qmail 14602 invoked by uid 22791); 16 Jan 2009 23:34:39 -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.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 23:34:03 +0000 Received: from spaceape9.eur.corp.google.com (spaceape9.eur.corp.google.com [172.28.16.143]) by smtp-out.google.com with ESMTP id n0GNY12R003896 for ; Fri, 16 Jan 2009 15:34:01 -0800 Received: from rv-out-0708.google.com (rvbf25.prod.google.com [10.140.82.25]) by spaceape9.eur.corp.google.com with ESMTP id n0GNXvpb009175 for ; Fri, 16 Jan 2009 15:33:58 -0800 Received: by rv-out-0708.google.com with SMTP id f25so1980788rvb.18 for ; Fri, 16 Jan 2009 15:33:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.199.16 with SMTP id w16mr1253058wff.4.1232148837648; Fri, 16 Jan 2009 15:33:57 -0800 (PST) In-Reply-To: <966c7c700901161513o6bca18dbx5ad35a1924b41130@mail.gmail.com> References: <966c7c700901141637g49f2bafcj6e95c60c80227eba@mail.gmail.com> <8ac60eac0901151805w1953e06do991af229cdccb5a2@mail.gmail.com> <966c7c700901161105l7212a096hecd192e7e4e751e1@mail.gmail.com> <8ac60eac0901161212y46e8107avcb62c48deae23edc@mail.gmail.com> <966c7c700901161513o6bca18dbx5ad35a1924b41130@mail.gmail.com> Date: Fri, 16 Jan 2009 23:34:00 -0000 Message-ID: <8ac60eac0901161533i1b8dc4ffge184525c1ba0e2c4@mail.gmail.com> Subject: Re: Program terminated by SIGTRAP in gdb From: Paul Pluzhnikov To: Albert Fu Cc: "gdb@sourceware.org" 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-01/txt/msg00101.txt.bz2 [I added gdb@sourceware.org back] On Fri, Jan 16, 2009 at 3:13 PM, Albert Fu wrote: >> Did you do that command on host or on target (or are they one and >> the same)? > It produced "No Symbols" when I ran the command on the target. > > I guest libpthread.so0 is stripped. Indeed. I am glad I asked. > Is there any example to compile a non-stripped version of libpthread? Your compiled for target version is already likely not stripped. Possibly you stripped it before copying to target, to save space. If so, use 'strip --strip-debug' instead of 'strip'. If your target version is stripped, notify your vendor that it is "no good". Rebuilding glibc for target using your cross-compiler will produce non-stripped version. Beware: libc.so.6, libpthread.so.0, ld-linux.so.2 etc. etc. must all match! Do not "mix and match" parts of glibc from different compilations. Cheers, -- Paul Pluzhnikov