From: "Kevin R.J. Ellwood" <kellwood@ford.com>
To: gdb@sourceware.cygnus.com
Subject: Odd behavior with souce files
Date: Mon, 10 Dec 2001 10:47:00 -0000 [thread overview]
Message-ID: <200112101847.fBAIldE13015@dymwsm10.mailwatch.com> (raw)
Hello All,
I sure hope this is not an FAQ -- I tried to check the manual and could
not find anything.
I am using gdb to debug a project and, as expected, gdb found the source
files. Unfortunately, when I step through the code, gdb complains that it
can't find souce code for libraries used by the project (including system
libraries). Below is a snippet from a gdb session.
233 else if (n == 0)
(gdb)
236 pntr = (double *) malloc((unsigned) n);
(gdb)
__libc_malloc (bytes=192) at malloc.c:2791
2791 malloc.c: No such file or directory.
in malloc.c
(gdb) s
2794 in malloc.c
(gdb)
2785 in malloc.c
(gdb)
2794 in malloc.c
(gdb)
2806 in malloc.c
Needless to say, I don't want to debug malloc. Is there an option for gdb
such that, if a source file is not found, it won't try to step into that
particular routine. I have similar problem when gdb encouters, printf,
fprintf, etc.
Thanks,
Kevin
-------------------------------
Kevin R.J. Ellwood
Materials Science Dept.
Scientific Research Lab
Dearborn, MI 48121-2153 MD3182
Phone: (313) 322-5535
Fax: (313) 323-1129
next reply other threads:[~2001-12-10 18:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-10 10:47 Kevin R.J. Ellwood [this message]
2001-12-10 11:21 ` Eli Zaretskii
2001-12-10 13:20 ` David Relson
2001-12-11 0:13 ` Eli Zaretskii
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=200112101847.fBAIldE13015@dymwsm10.mailwatch.com \
--to=kellwood@ford.com \
--cc=gdb@sourceware.cygnus.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