Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Gilliam <pgilliam@us.ibm.com>
To: gdb@sourceware.org
Subject: Re: Filename with "./" in breakpoint command
Date: Thu, 08 Dec 2005 20:53:00 -0000	[thread overview]
Message-ID: <200512081326.25873.pgilliam@us.ibm.com> (raw)
In-Reply-To: <dn739p$r96$1@sea.gmane.org>

On Wednesday 07 December 2005 08:40, Vladimir Prus wrote:
> Daniel Jacobowitz wrote:
> 
> > On Wed, Dec 07, 2005 at 10:46:54AM +0300, Vladimir Prus wrote:
> >> > Vladimir's original report is for communication from an IDE to GDB.
> >> > "Find the best match" and "ask the user" aren't very helpful; the IDE
> >> > needs to unambiguously specify what file it's already opened and is
> >> > showing to the user, in a way that GDB can understand precisely what
> >> > file is meant.  Absolute pathnames seem awfully convenient for that.
> >> 
> >> Yes. I've just suggested that not supporting relative paths can be not
> >> very convenient for those directly using console interface. Especially
> >> when you say "break ./tracepoint.cpp:NNN", gdb suggests that this file
> >> might be in shared library that's no loaded yet, which can confuse users
> >> even more.
> >> 
> >> I think either:
> >> 
> >>    1. Relative paths should be handled fine, or
> >>    2. Relative paths should produce a warning from gdb.
> > 
> > I'd rather #1.  But, there's a lot of room for what "fine" is.
> > Relative only to $cdir?  Relative to the directory search path?
> 
> I'd say relatively to $cdir. I just did not though about the second
> approach, and I still think $cdir is more intuitive.
> 
> - Volodya

We could still search the path: make up a special starting path-name component to mean 'search the current path'.

Something like .../find/me or @/find/me.

Just a thought.

-=# Paul #=-


  reply	other threads:[~2005-12-08 20:53 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
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 [this message]
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=200512081326.25873.pgilliam@us.ibm.com \
    --to=pgilliam@us.ibm.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