From: Nick Roberts <nickrob@snap.net.nz>
To: viona <lebedeva.anastasia@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: gdb gud won't show source code
Date: Fri, 20 Feb 2009 22:02:28 +1300 [thread overview]
Message-ID: <18846.29092.554648.512412@kahikatea.snap.net.nz> (raw)
In-Reply-To: <63b89039-2f44-45a0-875c-de5e54c44617@g1g2000pra.googlegroups.com>
> I've actually did compile with -g. The fact is, that it can't see it
> anyway, unless I specify custom output with -o.
> I am not sure whether it's supposed behaviour, cause in all tutorials
> I've found there are examples with a.out.
> Thanks anyway.
From the command line, if you do (replace myprog with the name of your
program name):
$ gdb myprog
GNU gdb...
(gdb) list
(gdb) info source
what does Gdb print?
You should get `somthing like':
Current source file is myprog.c
Compilation directory is /home/nickrob
Located in /home/nickrob/myprog.c
Contains 267 lines.
Source language is c.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
if you compile with "gcc -g -o myprog myprog.c".
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2009-02-20 9:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 21:30 gdb gud won't show source code viona
2009-02-19 22:10 ` Peter Dyballa
[not found] ` <mailman.1220.1235081444.31690.help-gnu-emacs@gnu.org>
2009-02-20 0:07 ` viona
2009-02-20 5:41 ` viona
2009-02-20 7:32 ` Peter Dyballa
2009-02-20 9:02 ` Nick Roberts [this message]
2009-02-20 5:32 ` Nick Roberts
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=18846.29092.554648.512412@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=help-gnu-emacs@gnu.org \
--cc=lebedeva.anastasia@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.