* gdb gud won't show source code
@ 2009-02-19 21:30 viona
2009-02-19 22:10 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: viona @ 2009-02-19 21:30 UTC (permalink / raw)
To: help-gnu-emacs
Under Aquamacs 1.7 I try to start gdb, and it opens up all the
windows, like breakpoints, stack etc,
but instead of the buffer with a source code I have a buffer *Buffer
List*. How do I fix that?
(gdb-show-main is set to true)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gdb gud won't show source code
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 5:32 ` Nick Roberts
2 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-02-19 22:10 UTC (permalink / raw)
To: viona; +Cc: help-gnu-emacs
Am 19.02.2009 um 22:30 schrieb viona:
> Under Aquamacs 1.7
Have you thought of sending the question to:
MacOSX-Emacs mailing list
mailto:MacOSX-Emacs@email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
--
Greetings
Pete
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
- Jeremy S. Anderson
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.1220.1235081444.31690.help-gnu-emacs@gnu.org>]
* Re: gdb gud won't show source code
[not found] ` <mailman.1220.1235081444.31690.help-gnu-emacs@gnu.org>
@ 2009-02-20 0:07 ` viona
2009-02-20 5:41 ` viona
0 siblings, 1 reply; 7+ messages in thread
From: viona @ 2009-02-20 0:07 UTC (permalink / raw)
To: help-gnu-emacs
Thanks, I'll try to do that
On Feb 19, 2:10 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 19.02.2009 um 22:30 schrieb viona:
>
> > Under Aquamacs 1.7
>
> Have you thought of sending the question to:
>
> MacOSX-Emacs mailing list
> mailto:MacOSX-Em...@email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives:http://dir.gmane.org/gmane.emacs.macintosh.osx
>
> --
> Greetings
>
> Pete
>
> There are two major products that come out of Berkeley: LSD and UNIX.
> We don't believe this to be a coincidence.
> - Jeremy S. Anderson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gdb gud won't show source code
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
0 siblings, 2 replies; 7+ messages in thread
From: viona @ 2009-02-20 5:41 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gdb gud won't show source code
2009-02-20 5:41 ` viona
@ 2009-02-20 7:32 ` Peter Dyballa
2009-02-20 9:02 ` Nick Roberts
1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2009-02-20 7:32 UTC (permalink / raw)
To: viona; +Cc: help-gnu-emacs
Am 20.02.2009 um 06:41 schrieb viona:
> I am not sure whether it's supposed behaviour, cause in all tutorials
> I've found there are examples with a.out.
The name a.out plays no role. Once gdb has started to run the
programme to debug, its sources become available. It helps gdb to
have a .gdbinit file in the directory with the binary to debug. Here
you can record whether the sources are in a different directory. And
more things, for example breakpoints.
--
Greetings
Pete
One person with a belief is a social power equal to ninety-nine who
have only interests.
– John Stuart Mill
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gdb gud won't show source code
2009-02-20 5:41 ` viona
2009-02-20 7:32 ` Peter Dyballa
@ 2009-02-20 9:02 ` Nick Roberts
1 sibling, 0 replies; 7+ messages in thread
From: Nick Roberts @ 2009-02-20 9:02 UTC (permalink / raw)
To: viona; +Cc: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gdb gud won't show source code
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 5:32 ` Nick Roberts
2 siblings, 0 replies; 7+ messages in thread
From: Nick Roberts @ 2009-02-20 5:32 UTC (permalink / raw)
To: viona; +Cc: help-gnu-emacs
viona writes:
> Under Aquamacs 1.7 I try to start gdb, and it opens up all the
> windows, like breakpoints, stack etc,
> but instead of the buffer with a source code I have a buffer *Buffer
> List*. How do I fix that?
> (gdb-show-main is set to true)
It just means that Emacs (Gdb) can't find the main procedure: you've probably
compiled without the -g option.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-02-20 9:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-02-20 5:32 ` Nick Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).