From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32410 invoked by alias); 8 Sep 2008 15:03:41 -0000 Received: (qmail 32401 invoked by uid 22791); 8 Sep 2008 15:03:40 -0000 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.31) with ESMTP; Mon, 08 Sep 2008 15:03:05 +0000 Received: from wpaz33.hot.corp.google.com (wpaz33.hot.corp.google.com [172.24.198.97]) by smtp-out3.google.com with ESMTP id m88F2vJO014496 for ; Mon, 8 Sep 2008 16:02:57 +0100 Received: from gxk14 (gxk14.prod.google.com [10.202.11.14]) by wpaz33.hot.corp.google.com with ESMTP id m88F2aPu032553 for ; Mon, 8 Sep 2008 08:02:56 -0700 Received: by gxk14 with SMTP id 14so7856169gxk.9 for ; Mon, 08 Sep 2008 08:02:56 -0700 (PDT) Received: by 10.114.181.6 with SMTP id d6mr12448008waf.174.1220886176329; Mon, 08 Sep 2008 08:02:56 -0700 (PDT) Received: by 10.114.78.12 with HTTP; Mon, 8 Sep 2008 08:02:56 -0700 (PDT) Message-ID: <8ac60eac0809080802p26df2294v10b2842db85bcd22@mail.gmail.com> Date: Mon, 08 Sep 2008 15:03:00 -0000 From: "Paul Pluzhnikov" To: "gdb Mailing List" Subject: Re: Single stepping and "no line information" In-Reply-To: <20080908133953.GA19559@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080908133953.GA19559@geppetto> 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: 2008-09/txt/msg00046.txt.bz2 On Mon, Sep 8, 2008 at 6:39 AM, Stefano Sabatini wrote: > > I'm debugging an application which use a shared lib. > > That library has been compiled on my system, and I added to the CFLAGS > used the -ggdb -O0 flags, so I'm quite sure that lib should contain > the source line symbol informations. > > Nonetheless when I try to step into the library functions I get: > > (gdb) s > Single stepping until exit from function su_clone_start, > which has no line number information. What is the name of that shared library and what does 'info shared' say? > Why gdb can't find the source line informations? Not enough info to tell yet. > How can I verify (e.g. with a commandline tool) wether that > information is present directly analyzing the library files? readelf -w /path/to/shlib then look for "Line Number Statements" corresponding to su_clone_start. Cheers, -- Paul Pluzhnikov