From: Nick Roberts <nickrob@snap.net.nz>
To: Chming <chming@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to attach some gdb variant within emacs?
Date: Wed, 18 Jun 2008 17:55:23 +1200 [thread overview]
Message-ID: <18520.41803.654199.261070@kahikatea.snap.net.nz> (raw)
In-Reply-To: <ab4823ab0806172139l54ecb12bic0dc7b39b37e093b@mail.gmail.com>
> 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
prev parent reply other threads:[~2008-06-18 5:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=18520.41803.654199.261070@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=chming@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.