This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

[NEWBIE] Symbol location by filename problem


Hi all,

this is my first post here so I would like thank you for your useful
tool.

I'm not even sure if this is the right mailing list to post user
questions, please tell me if it is the case.

BTW, I would also like to know if there is a central repository where
we final users may add documentation, I wonder if the wiki may be used
for this purpose.

And now back to my problem.

I'm using here the emacs GUD interface. I noticed that when gdb looks for
a symbol, if there is in dir more than one file with the same filename
it happens it shows the wrong one, that is the first in the dir with
that filename. My workaround is to change the current dir of
GDB to that of the correct file when *I* know the symbol is.

I think this depends on the fact that the symbol table only contains
the stripped name of the filename of each symbol, rather than
containing the complete path.

I would like to know if this is a GDB rather than a GUD specific
problem, and if it can be eventually fixed (maybe compiling with some
specific flag, I'm using gcc here) or if I have to stay with it.

Many thanks in advance, best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)


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