public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Marc Gonzalez-Sigler <marc.gonzalez-sigler@inria.fr>
To: gdb@sources.redhat.com
Subject: gdb steps into glibc functions
Date: Tue, 21 Oct 2003 10:48:00 -0000	[thread overview]
Message-ID: <3F950EE1.6050204@inria.fr> (raw)

Hi all,

I have the following system:

$ uname -a
Linux ikaria 2.4.16 #1 Wed Jan 9 15:04:38 CET 2002 i686 unknown

$ gdb -v
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and 
you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i386-redhat-linux".

When I use the step command in gdb, it seems that gdb tries to step 
into glibc functions.


325         a2b = (strcmp (progname, "ir_a2b") == 0);
(gdb) step
strcmp (p1=0xbfffface "ir_b2a", p2=0x80ed99f "ir_a2b") at 
../sysdeps/generic/strcmp.c:33
33      ../sysdeps/generic/strcmp.c: No such file or directory.
         in ../sysdeps/generic/strcmp.c
Current language:  auto; currently c


This does not happen on my home computer: even when I use the step 
command, gdb steps over glibc calls.

Does it mean that glibc was compiled with debugging information on 
this Redhat system? And gdb complains because it cannot find the 
source code?

If this is the case, then I would obtain the behavior I am used to 
as soon as I use a version of glibc which was compiled without 
debugging information, no? Could I just strip the library?

One last question: once I enter a function, say, strcmp(), is finish 
the correct command to jump out of the function?

Marc

             reply	other threads:[~2003-10-21 10:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 10:48 Marc Gonzalez-Sigler [this message]
2003-10-21 12:52 ` Daniel Jacobowitz
2003-10-21 14:19 Michael Elizabeth Chastain
2003-10-21 14:56 ` Marc Gonzalez-Sigler
2003-10-21 15:40 Michael Elizabeth Chastain

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=3F950EE1.6050204@inria.fr \
    --to=marc.gonzalez-sigler@inria.fr \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).