Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Gernot Hillier <gernot.hillier@siemens.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: handling of absolute source file paths (feature wish/implementation idea)
Date: Thu, 22 Jan 2004 15:39:00 -0000	[thread overview]
Message-ID: <200401221639.02120.gernot.hillier@siemens.com> (raw)
In-Reply-To: <20040122150717.GA20168@nevyn.them.org>

Hi!

Am Donnerstag, 22. Januar 2004 16:07 schrieb Daniel Jacobowitz:
> On Thu, Jan 22, 2004 at 04:01:14PM +0100, Gernot Hillier wrote:
> > Revision 1.39, Mon Jan 13 20:11:47 2003 UTC by drow
> > * source.c (openp): If the file does not exist don't necessarily
> >   search the path.
> >
> > 1. Reverting the change in the mainline as we did. I currently can see no
> > real reason why this change was made but I think there was a reason. So I
> > assume you won't like it, do you?
>
> I recommend you read the list archives to see why the change was made.
>
> You'd have found this:
> > Sometime last April, when Joel committed a patch to not try to open
> > directories as programs, we started always searching the given path in
> > openp ().  Try it:
> > % gdb ./ls
> > will open /bin/ls if there is no ls in the current directory.

Sorry, I tried to search in the gdb archives for some keywords but the web 
search was terribly slow and so I gave up after three tries or so. But yes, I 
should've done it... :-}

> > 3. Implement a new setting "source-absolute-prefix" (analog to the
> > already existing "solib-absolute-prefix") which allows the user to set a
> > prefix for given absolute source code paths.
>
> I think this is a good idea, but let's see if anyone else has an
> opinion.

And what about idea 2 (using the already given pathes, not using another 
list)? This would be much less work to implement ;-) Let's say an additional 
parameter of openp which is only set by open_source_file() and only if 
"source-absolute-search-mode" is enabled or so...

-- 
Bye,

Gernot Hillier
CT SE 2
Siemens AG, Mch P


  reply	other threads:[~2004-01-22 15:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 15:01 Gernot Hillier
2004-01-22 15:07 ` Daniel Jacobowitz
2004-01-22 15:39   ` Gernot Hillier [this message]
2004-01-22 18:02     ` Daniel Jacobowitz
2004-01-22 16:04   ` Paul Koning
2004-01-22 17:26 ` Eli Zaretskii
2004-01-22 17:58   ` Daniel Jacobowitz
2004-03-03 17:54     ` Baurjan Ismagulov
2004-01-22 18:45   ` Andrew Cagney
2004-01-22 20:16     ` Daniel Jacobowitz
2004-01-23 13:02       ` Eli Zaretskii
2004-01-23 20:26       ` Andrew Cagney
     [not found] <1074884800.30040.ezmlm@sources.redhat.com>
2004-01-23 21:31 ` Jim Ingham
2004-03-03 16:12   ` Baurjan Ismagulov

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=200401221639.02120.gernot.hillier@siemens.com \
    --to=gernot.hillier@siemens.com \
    --cc=drow@mvista.com \
    --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