Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Cc: gdb Mailing List <gdb@sources.redhat.com>
Subject: Re: [NEWBIE] Symbol location by filename problem
Date: Fri, 14 Mar 2008 11:36:00 -0000	[thread overview]
Message-ID: <18394.16720.122465.164330@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20080314082859.GC5680@geppetto>

 > 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


  reply	other threads:[~2008-03-14  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14  9:03 Stefano Sabatini
2008-03-14 11:36 ` Nick Roberts [this message]
2008-03-14 23:55 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18394.16720.122465.164330@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb@sources.redhat.com \
    --cc=stefano.sabatini-lala@poste.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox