On Jun 9, 2005, at 7:30 PM, Jim Wintermyre wrote:
I'm having a problem with 2-machine debugging that I don't recall
happening before. I can't seem to view any of my source in gdb.
It gives me errors saying the file can't be found. However, the
weird thing is that once I load my symbol files I can set
breakpoints by line numbers in the file, i.e. "b foo.c:24", and
that works just fine. The breakpoints are hit correctly, but I
still can't view the corresponding source. Any ideas?
Make sure that the sources you want to look at are in the same
location they were when the module was built. You can use the 'dir'
command in gdb to add a directory to the search path; individual
files (not subpaths) are looked for there as well.
= Mike