Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* "path" does not seem to work correctly
@ 2007-07-17 10:54 Mandar Mitra
  2007-07-17 12:43 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Mandar Mitra @ 2007-07-17 10:54 UTC (permalink / raw)
  To: gdb

Hello,

I have two versions of a program (called smart):
- one compiled with -g and located in .../src/bin
- the other compiled with -O2 (without -g) and located in .../diropt/bin

The diropt/bin directory comes first on my $PATH, but in my ~/.gdbinit
file, I've re-defined "path" so that the debuggable program comes
first:

(gdb) path
Executable and object file path: .../src/bin:/bin:...:diropt/bin:.

But when I run "gdb smart", or "file smart" inside gdb, it still picks
up the optimized executable from diropt/bin.

(gdb) file smart
Reading symbols from .../diropt/bin/smart...done.

Can someone give me some hint about what I'm doing wrong?

Thanks,
Mandar.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-17 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-17 10:54 "path" does not seem to work correctly Mandar Mitra
2007-07-17 12:43 ` Daniel Jacobowitz
2007-07-17 13:46   ` Mandar Mitra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox