* [NEWBIE] Symbol location by filename problem
@ 2008-03-14 9:03 Stefano Sabatini
2008-03-14 11:36 ` Nick Roberts
2008-03-14 23:55 ` Daniel Jacobowitz
0 siblings, 2 replies; 3+ messages in thread
From: Stefano Sabatini @ 2008-03-14 9:03 UTC (permalink / raw)
To: gdb Mailing List
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [NEWBIE] Symbol location by filename problem
2008-03-14 9:03 [NEWBIE] Symbol location by filename problem Stefano Sabatini
@ 2008-03-14 11:36 ` Nick Roberts
2008-03-14 23:55 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Nick Roberts @ 2008-03-14 11:36 UTC (permalink / raw)
To: Stefano Sabatini; +Cc: gdb Mailing List
> I'm not even sure if this is the right mailing list to post user
> questions, please tell me if it is the case.
For questions about using Gdb in Emacs it's probably best to post to
1) help-gnu-emacs@gnu.org for released versions of Emacs
2) emacs-devel@gnu.org for unreleased versions of Emacs
(CVS repository at Savannah)
> 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.
How do you ask Gdb to look for a symbol?
> 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.
It sounds like you are asking Gdb to look for a file - but I'm not sure.
In any case, Gdb has the full filenames.
> 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.
It's probably an Emacs problem but you don't say what version you are using,
or what platform.
In Emacs, please do M-x report-emacs-bug (also on the menu-bar (Help->Send Bug
Report...) then it will start a mail message with the right e-mail address and
include your configuration. If you then describe the problem again (for
subscribers of that list) and include your version of Gdb, we can look for an
answer.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [NEWBIE] Symbol location by filename problem
2008-03-14 9:03 [NEWBIE] Symbol location by filename problem Stefano Sabatini
2008-03-14 11:36 ` Nick Roberts
@ 2008-03-14 23:55 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-03-14 23:55 UTC (permalink / raw)
To: gdb Mailing List
On Fri, Mar 14, 2008 at 09:28:59AM +0100, Stefano Sabatini wrote:
> 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.
Sure.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-14 11:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 9:03 [NEWBIE] Symbol location by filename problem Stefano Sabatini
2008-03-14 11:36 ` Nick Roberts
2008-03-14 23:55 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox