Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nirf <quicknir@gmail.com>
To: gdb@sourceware.org
Subject: Help with Code in Multiple Directories
Date: Fri, 27 Mar 2009 08:44:00 -0000	[thread overview]
Message-ID: <22737823.post@talk.nabble.com> (raw)


Hello,
I'm trying to get started with GDB but am having great trouble. I have a
fairly complicated program with code spread out over several directories and
GDB is refusing to recognize that I have any source at all. I have also
tried GDB on a hello world program and in that case it worked. To specify
the directory structure, I have:
.../UnixBuild/         which contains the make file and the executable
.../HysteresisFiles/      which contains most of the source
.../Console/              which contains the rest

i go into the konsole, go into UnixBuild and run gdb. Then I enter in the
commands "directory .../HysteresisFiles/" and then "directory .../Console/"
(at this point I should probably clarify that ... stands for the base
directory that I am typing in in full). Then I type "file HysteresisConsole"
which is the name of my executable. It loads fine and I am able to run it.
However when I type in a command like "list sourcecodename:5" it does not
find the source code regardless of which file name I insert for
sourcecodename. Any help with this would be greatly appreciated.

Nir
-- 
View this message in context: http://www.nabble.com/Help-with-Code-in-Multiple-Directories-tp22737823p22737823.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


             reply	other threads:[~2009-03-27  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27  8:44 Nirf [this message]
2009-03-27 15:33 ` Paul Pluzhnikov
2009-03-27 21:40   ` Paul Pluzhnikov

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=22737823.post@talk.nabble.com \
    --to=quicknir@gmail.com \
    --cc=gdb@sourceware.org \
    /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