Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@cygnus.com
Cc: gdb-testers@cygnus.com
Subject: Re:
Date: Mon, 06 Apr 1998 14:36:00 -0000	[thread overview]
Message-ID: <35294ADF.FA7@cygnus.com> (raw)
In-Reply-To: <199804062116.OAA19406@andros.cygnus.com>

Stan Shebs wrote:
> 
>    Date: Mon, 6 Apr 1998 13:41:37 +0200 (MET DST)
>    From: "Philippe De Muyter" <phdm@macqel.be>
> 
>    Am I the only one to have (sometimes) the problem of finding a non-executable
>    with the same name earlier in my path than the program I want to debug ?
> 
> Apparently. :-)  But seriously, I don't think this change is a good idea.
> While it would work fine for native Unix debugging, it will lose for
> just about everything else.  For both cross-Unix and embedded debugging
> you almost certainly want the programs *not* to be marked as executable,
> so that your current host doesn't try to execute them.
> 
> However, if you set things up so that this test is only made when
> using a Unix child_ops, this would be a useful addition.

I don't think I have ever had this problem.  Is it not the case
that GDB always looks in the "current working directory" first, 
and only then looks along your path?  (certainly I do not have
"current working directory" on my path!)

If the above is the case, then under what circumstances could 
you have this problem?  The only one that I can think of is if
you were trying to debug something that is NOT in your current
working directory, yet you did NOT give a path to the binary
that you wanted to debug.

In which case, I would have to ask, "why would you want to do that?"

Michael


  reply	other threads:[~1998-04-06 14:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-06  4:43 No Subject Philippe De Muyter
1998-04-06 14:16 ` Stan Shebs
1998-04-06 14:36   ` Michael Snyder [this message]
1998-04-06 15:14     ` Michael Meissner
     [not found] <C125695E.0056F77E.00@d12mta09.de.ibm.com>
2000-09-18 22:04 ` Re: Andrew Cagney
2001-09-13 13:03 Re: Christoph Arenz
2001-09-17 22:06 ` Re: Andrew Cagney
2001-09-19 12:04   ` Re: Andrew Cagney

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=35294ADF.FA7@cygnus.com \
    --to=msnyder@cygnus.com \
    --cc=gdb-patches@cygnus.com \
    --cc=gdb-testers@cygnus.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