Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: christopher j bottaro <cjb@cs.utexas.edu>
To: gdb@sources.redhat.com
Subject: relative file paths?
Date: Wed, 26 Feb 2003 22:50:00 -0000	[thread overview]
Message-ID: <200302261651.04300.cjb@cs.utexas.edu> (raw)

gdb won't let me set a breakpoint when i use a relative file name.  i have to 
cd into the dir where the file is to make a break point.  its kinda annoying.  
am i doing something wrong or is this how its suppose to be?

ex output:

(gdb) pwd
Working directory /home/cjb/projects/cs378/linux-2.4.19.
(gdb) b arch/um/kernel/hostandtime.c:9
No source file named arch/um/kernel/hostandtime.c.
(gdb) cd arch/um/kernel/             
Working directory /home/cjb/projects/cs378/linux-2.4.19/arch/um/kernel.
(gdb) b hostandtime.c:9
Breakpoint 4 at 0xa0074187: file hostandtime.c, line 9.

thanks for the help,
-- christopher


             reply	other threads:[~2003-02-26 22:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 22:50 christopher j bottaro [this message]
2003-02-27 23:31 ` gdb 5.3 doesn't find line numbers David Wuertele
2003-02-27 23:33   ` Daniel Jacobowitz
2003-02-27 23:57     ` David Wuertele
2003-02-28  0:08       ` Daniel Jacobowitz
2003-02-28  0:23         ` David Wuertele

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=200302261651.04300.cjb@cs.utexas.edu \
    --to=cjb@cs.utexas.edu \
    --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