This is the mail archive of the insight@sourceware.org mailing list for the Insight 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: Problems with function pointers in C++


Geert Vancompernolle wrote:
Keith Seitz wrote:
You'll need to use the "dir" command to add the path to the source files.

Sorry, this one I don't understand, Keith...

Gdb doesn't know where your source files are, since they were compiled on my machine in a directory that probably doesn't exist on your machine.


Gdb's "dir" command adds paths to the source search list so that gdb can find the sources:

(gdb) help dir
Add directory DIR to beginning of search path for source files.
Forget cached info on source file locations and line positions.
DIR can also be $cwd for the current working directory, or $cdir for the
directory in which the source file was compiled into object code.
With no argument, reset the search path to $cdir:$cwd, the default.

But perhaps I am mistaken about this being the problem...

Keith


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