public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* trouble locating source files through relative paths
@ 2005-08-19  7:25 Craig Jeffree
  2005-08-19 12:43 ` Bob Rossi
  0 siblings, 1 reply; 15+ messages in thread
From: Craig Jeffree @ 2005-08-19  7:25 UTC (permalink / raw)
  To: gdb

Hi,

I've been having trouble getting GDB (v6.3 build myself from source on
RHEL4) to locate the source files associated with the binary I'm
debugging.  The binary refers to some source files using relative paths
say for example:

../../include/General/GeString.H

This file exists but the path from which the relative path should start
differs now because the binary has been moved.

I've added the correct starting path to my source search path using the
'dir' command and expect GDB to find the file now as described in the
GDB manual here:
http://sources.redhat.com/gdb/download/onlinedocs/gdb_8.html#SEC53

However an strace of GDB shows that it only looks for GeString.H in the
newly specified search path directory and doesn't ever try using the
search path as a base for the relative directories.

If I ignore the relative path and set the search path to the full path
to this file it works, however the application has hundreds of files,
some of which have conflicting names if the directory path isn't
included.  

How can I get GDB to use the search path as a base for relative paths
specified in the debug info rather than only looking directly in the
search path dirs?

Cheers,
Craig.

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

end of thread, other threads:[~2005-08-26  3:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-19  7:25 trouble locating source files through relative paths Craig Jeffree
2005-08-19 12:43 ` Bob Rossi
2005-08-23  5:04   ` Craig Jeffree
2005-08-23  9:20     ` Dave Korn
2005-08-23 11:31     ` Bob Rossi
2005-08-23 11:40       ` Bob Rossi
2005-08-23 14:49         ` Daniel Jacobowitz
2005-08-23 15:24           ` Bob Rossi
2005-08-24  6:55         ` Craig Jeffree
2005-08-24 11:24           ` Bob Rossi
2005-08-25  0:07             ` Craig Jeffree
2005-08-25 13:14               ` Bob Rossi
2005-08-25 23:43                 ` Craig Jeffree
2005-08-26  2:20                   ` Bob Rossi
2005-08-26  3:35                     ` Craig Jeffree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).