Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tarjei Knapstad <tarjeik@chemcon.no>
To: gdb <gdb@sources.redhat.com>
Subject: gdb has problems finding my sources
Date: Wed, 21 Jan 2004 14:09:00 -0000	[thread overview]
Message-ID: <1074694168.24023.73.camel@cc-intern01> (raw)

I've got a C++ test suite project that includes headers from and links
with static libraries from another project which resides in a different
directory tree (also pure C++). I'm using the current Fedora Core 2
snapshot of gdb (gdb-6.0post-0.20031117.7 from 08-01-2004), but I've got
the same problems with either 5.2 or 5.3.

When debugging this testsuite gdb apparently has problems when I try to
step into (template) functions contained in certain header files. The
headers in question contain only template code which is used and linked
into the testsuite application. gdb just gives me "xxx yyy.h: File or
directory not found" where xxx is a line number and yyy.h is the header
file in question. 

If I add the source directory for yyy.h explicitly from gdb using the
'dir' command it works, but I don't understand why I should have to do
that - it works perfectly with for instance the Boost and STL headers.
The other problems with adding the searchpath explicitly is that I'm
using gdb from within KDevelop where I don't have access to the gdb
commandline, as well as the fact that it's a great nusiance to have to
add the dirs (there are potentially lots) each time I run the debugger. 

I've reproduced this exact same behaviour using gdb from the commandline
so I don't think it's KDevelop's fault.

Is there anyone who could provide me with any pointers wrt. how I can
possibly fix this? Any help getting this sorted would be much
appreciated.

Thanks in advance,
--
Tarjei Knapstad


             reply	other threads:[~2004-01-21 14:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-21 14:09 Tarjei Knapstad [this message]
2004-01-21 15:12 ` Daniel Jacobowitz
2004-01-21 15:18   ` Tarjei Knapstad
2004-01-21 16:53   ` gdb has problems finding my sources (now with testcase) Tarjei Knapstad
2004-01-23 12:07     ` Tarjei Knapstad

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=1074694168.24023.73.camel@cc-intern01 \
    --to=tarjeik@chemcon.no \
    --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