This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Still cannot print variable


On Fri, Apr 15, 2005 at 07:54:54AM -0400, Bob Rossi wrote:
> You know, I just realized it's kind of odd that GDB doesn't look on the
> users PATH to figure out which program to debug. For instance, it must
> first look in the . directory, which is why this works in the first
> place. I'd expect GDB to start debugging /usr/bin/test, as if he'd run
> 'test' on the command line.

It does search $PATH.  However, it searches the current directory
first, because it's more like a program taking a file argument than it
is like a command.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]