Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Paul Pluzhnikov" <ppluzhnikov@google.com>
To: "gdb Mailing List" <gdb@sources.redhat.com>
Subject: Re: Single stepping and "no line information"
Date: Mon, 08 Sep 2008 15:03:00 -0000	[thread overview]
Message-ID: <8ac60eac0809080802p26df2294v10b2842db85bcd22@mail.gmail.com> (raw)
In-Reply-To: <20080908133953.GA19559@geppetto>

On Mon, Sep 8, 2008 at 6:39 AM, Stefano Sabatini
<stefano.sabatini-lala@poste.it> 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


      parent reply	other threads:[~2008-09-08 15:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 13:41 Stefano Sabatini
2008-09-08 13:46 ` Stefano Sabatini
2008-09-08 15:03 ` Paul Pluzhnikov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ac60eac0809080802p26df2294v10b2842db85bcd22@mail.gmail.com \
    --to=ppluzhnikov@google.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox