Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Finding absolute path from relative.
@ 2003-09-29  2:25 Bob Rossi
  2003-09-29  2:31 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Rossi @ 2003-09-29  2:25 UTC (permalink / raw)
  To: gdb

Hi,

I am thinking about the algorithm required to find the absolute path to
a source file given the relative path and the output from 'show dir'.

Is it really as easy as this,

for I in 'show dir' # for each directory in show dir
   if $I/relative_path exists 
      break; # Found absolute path.

Or does it get more complex and obfuscated?

Bob Rossi


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

end of thread, other threads:[~2003-09-29  4:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29  2:25 Finding absolute path from relative Bob Rossi
2003-09-29  2:31 ` Daniel Jacobowitz
2003-09-29  2:33   ` Bob Rossi
2003-09-29  2:44     ` Daniel Jacobowitz
2003-09-29  4:58       ` Bob Rossi
2003-09-29  5:18         ` Eli Zaretskii

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