* How to attach some gdb variant within emacs?
@ 2008-06-17 1:38 Max
2008-06-17 3:59 ` Max
2008-06-17 22:06 ` Nick Roberts
0 siblings, 2 replies; 6+ messages in thread
From: Max @ 2008-06-17 1:38 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I need to use one variant of gdb for debugging. I thought it could be
attached into my emacs(latest cvs version) with the setting of the
variable
gud-gdb-command-name(with --fullname or --annotate=3). However, it
does not work. The command for gdb has no response at all. I tried it
on the older emacs(21.3) and there is no problem in this hack. Could
someone tell how to solve this?
Thanks a lot,
Max
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to attach some gdb variant within emacs?
2008-06-17 1:38 How to attach some gdb variant within emacs? Max
@ 2008-06-17 3:59 ` Max
2008-06-17 19:10 ` Max
2008-06-17 22:06 ` Nick Roberts
1 sibling, 1 reply; 6+ messages in thread
From: Max @ 2008-06-17 3:59 UTC (permalink / raw)
To: help-gnu-emacs
Forgot to say, the version of this kind of gdb is 6.1.
Is this too old?
Thanks a lot.
On Jun 16, 6:38 pm, Max <chm...@gmail.com> wrote:
> Hi all,
>
> I need to use one variant of gdb for debugging. I thought it could be
> attached into my emacs(latest cvs version) with the setting of the
> variable
> gud-gdb-command-name(with --fullname or --annotate=3). However, it
> does not work. The command for gdb has no response at all. I tried it
> on the older emacs(21.3) and there is no problem in this hack. Could
> someone tell how to solve this?
>
> Thanks a lot,
>
> Max
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to attach some gdb variant within emacs?
2008-06-17 3:59 ` Max
@ 2008-06-17 19:10 ` Max
0 siblings, 0 replies; 6+ messages in thread
From: Max @ 2008-06-17 19:10 UTC (permalink / raw)
To: help-gnu-emacs
The gdb window is shown within emacs. However, the gdb commands, e.g.
pwd, quit, have no response and freeze there. Sorry for the confusion.
Is it possible that this is caused by the init of old version gdb(6.1
with --annotate=1or3)? Because I saw sometimes the status bar shows
"initializing".
Thanks a lot,
On Jun 16, 8:59 pm, Max <chm...@gmail.com> wrote:
> Forgot to say, the version of this kind of gdb is 6.1.
>
> Is this too old?
>
> Thanks a lot.
>
> On Jun 16, 6:38 pm, Max <chm...@gmail.com> wrote:
>
> > Hi all,
>
> > I need to use one variant of gdb for debugging. I thought it could be
> > attached into my emacs(latest cvs version) with the setting of the
> > variable
> > gud-gdb-command-name(with --fullname or --annotate=3). However, it
> > does not work. The command for gdb has no response at all. I tried it
> > on the older emacs(21.3) and there is no problem in this hack. Could
> > someone tell how to solve this?
>
> > Thanks a lot,
>
> > Max
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to attach some gdb variant within emacs?
2008-06-17 1:38 How to attach some gdb variant within emacs? Max
2008-06-17 3:59 ` Max
@ 2008-06-17 22:06 ` Nick Roberts
2008-06-18 4:39 ` Chming
1 sibling, 1 reply; 6+ messages in thread
From: Nick Roberts @ 2008-06-17 22:06 UTC (permalink / raw)
To: Max; +Cc: help-gnu-emacs
> I need to use one variant of gdb for debugging. I thought it could be
> attached into my emacs(latest cvs version) with the setting of the
> variable
> gud-gdb-command-name(with --fullname or --annotate=3). However, it
> does not work. The command for gdb has no response at all. I tried it
> on the older emacs(21.3) and there is no problem in this hack. Could
> someone tell how to solve this?
The "--annotate=3" should work with M-x gdb in CVS Emacs. You don't say what
platform you are using and 6.1 is quite an old version of GDB. Try a newer
version if you can. Otherwise do M-x gdb-enable-debug, start GDB in Emacs and
then when it freezes post the value of gdb-dubug-log here (or just to me if
it's too long). Please do this with M-x report-emacs-bug so I can see your
configuration too.
The "--fullname" option with M-x gdb has been broken for sometime in
CVS Emacs and will go shortly. Use M-x gud-gdb instead.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to attach some gdb variant within emacs?
2008-06-17 22:06 ` Nick Roberts
@ 2008-06-18 4:39 ` Chming
2008-06-18 5:55 ` Nick Roberts
0 siblings, 1 reply; 6+ messages in thread
From: Chming @ 2008-06-18 4:39 UTC (permalink / raw)
To: Nick Roberts; +Cc: help-gnu-emacs
Hi Nick,
The gud-gdb works. That's really awesome. Thank you very much.
About the debug log, it has nothing but the license info even if I
input pwd or quit. I guess the root reason is that the gdb is too old.
Thanks and regards,
Max
On Tue, Jun 17, 2008 at 3:06 PM, Nick Roberts <nickrob@snap.net.nz> wrote:
> > I need to use one variant of gdb for debugging. I thought it could be
> > attached into my emacs(latest cvs version) with the setting of the
> > variable
> > gud-gdb-command-name(with --fullname or --annotate=3). However, it
> > does not work. The command for gdb has no response at all. I tried it
> > on the older emacs(21.3) and there is no problem in this hack. Could
> > someone tell how to solve this?
>
> The "--annotate=3" should work with M-x gdb in CVS Emacs. You don't say what
> platform you are using and 6.1 is quite an old version of GDB. Try a newer
> version if you can. Otherwise do M-x gdb-enable-debug, start GDB in Emacs and
> then when it freezes post the value of gdb-dubug-log here (or just to me if
> it's too long). Please do this with M-x report-emacs-bug so I can see your
> configuration too.
>
> The "--fullname" option with M-x gdb has been broken for sometime in
> CVS Emacs and will go shortly. Use M-x gud-gdb instead.
>
> --
> Nick http://www.inet.net.nz/~nickrob
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to attach some gdb variant within emacs?
2008-06-18 4:39 ` Chming
@ 2008-06-18 5:55 ` Nick Roberts
0 siblings, 0 replies; 6+ messages in thread
From: Nick Roberts @ 2008-06-18 5:55 UTC (permalink / raw)
To: Chming; +Cc: help-gnu-emacs
> The gud-gdb works. That's really awesome. Thank you very much.
It's just the old mode from Emacs 21. The GDB grahical interface that uses
the "--annotate=3" option is much better.
> About the debug log, it has nothing but the license info even if I
> input pwd or quit.
I don't understand how the license info can be in the value of gdb-debug-log
as output is only logged after it's been printed
It's value (using `C-h v') should end something like this:
(recv . "\n\x1a\x1apre-prompt\n(gdb) \n\x1a\x1aprompt\n")
(recv . "\n\x1a\x1apost-prompt\n")
(send-item "set width 0\n" ignore)
(recv . "\n\x1a\x1apre-prompt\n(gdb) \n\x1a\x1aprompt\n")
(recv . "\n\x1a\x1apost-prompt\n")
(send-item "set height 0\n" ignore)
(recv . "\n\x1a\x1apre-prompt\n(gdb) \n\x1a\x1aprompt\n")
(recv . "\n\x1a\x1apost-prompt\n&\"\\n\\032\\032error-begin\\n\"\n&\"No registers.\\n\"\n~\"\\n\"\n~\"\\032\\032error\\n\"\n^error,msg=\"No registers.\"\n(gdb) \n")
(send-item "server interpreter mi -stack-info-frame\n" gdb-get-version))
> I guess the root reason is that the gdb is too old.
That may be the reason. It should work on GNU/Linux but you don't say what
OS you are using
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-06-18 5:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17 1:38 How to attach some gdb variant within emacs? Max
2008-06-17 3:59 ` Max
2008-06-17 19:10 ` Max
2008-06-17 22:06 ` Nick Roberts
2008-06-18 4:39 ` Chming
2008-06-18 5:55 ` Nick Roberts
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.