From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org
Subject: Re: Filename with "./" in breakpoint command
Date: Tue, 06 Dec 2005 20:17:00 -0000 [thread overview]
Message-ID: <20051206201719.GA9140@nevyn.them.org> (raw)
In-Reply-To: <uwtiikmty.fsf@gnu.org>
On Tue, Dec 06, 2005 at 10:11:21PM +0200, Eli Zaretskii wrote:
> I didn't say that "./foo.c" shouldn't resolve to the file in the
> current working directory, I'm saying that it is not, IMHO, a good
> solution of the original problem.
>
> The original problem was _not_ that "./foo.c" didn't do what the user
> expected; "./foo.c" was an attempt of _solving_ a problem. And the
> problem the OP tried to solve was that there were several source files
> linked into the executable, each one in its own directory.
>
> I don't like telling the user to go to some directory to solve that
> original problem. For starters, it requires the user to type the full
> name of the directory, which is almost like asking them to type the
> full file name of the source file.
Great - then we all agree, except for a tangent on the meaning of
"original problem" ;-)
I was responding to the question Vladimir asked at the start of the
thread:
http://sourceware.org/ml/gdb/2005-12/msg00035.html
> I'd prefer to have a better solution to the original problem.
We do; use full pathnames. Vladimir already said he was fixing
kdevelop to not use ./, so I think that's well in hand. "info sources"
and the MI fullname field will both show the absolute pathname,
including the compilation directory.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-12-06 20:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-03 12:58 Vladimir Prus
2005-12-03 14:17 ` Eli Zaretskii
2005-12-03 14:22 ` Bob Rossi
2005-12-03 14:55 ` Eli Zaretskii
2005-12-03 15:01 ` Bob Rossi
2005-12-05 6:53 ` Vladimir Prus
2005-12-05 18:39 ` Eli Zaretskii
2005-12-05 18:56 ` Daniel Jacobowitz
2005-12-06 4:27 ` Eli Zaretskii
2005-12-06 4:55 ` Daniel Jacobowitz
2005-12-06 11:56 ` Bob Rossi
2005-12-06 14:01 ` Joel Brobecker
2005-12-06 14:26 ` Andrew STUBBS
2005-12-06 20:13 ` Eli Zaretskii
2005-12-06 20:11 ` Eli Zaretskii
2005-12-06 20:17 ` Daniel Jacobowitz [this message]
2005-12-06 21:02 ` Eli Zaretskii
2005-12-06 21:09 ` Daniel Jacobowitz
2005-12-06 22:32 ` Eli Zaretskii
2005-12-07 7:49 ` Vladimir Prus
2005-12-07 14:51 ` Daniel Jacobowitz
2005-12-07 16:46 ` Vladimir Prus
2005-12-08 20:53 ` Paul Gilliam
2005-12-03 14:19 ` Bob Rossi
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=20051206201719.GA9140@nevyn.them.org \
--to=drow@false.org \
--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