From: "Francis Moreau" <francis.moro@gmail.com>
To: "Nick Roberts" <nickrob@snap.net.nz>
Cc: help-gnu-emacs@gnu.org
Subject: Re: gud : Phase error in gdb-pre-prompt (got pre-emacs)
Date: Mon, 7 Jul 2008 09:59:09 +0200 [thread overview]
Message-ID: <38b2ab8a0807070059n7950c46j7e2a33a07fcb1533@mail.gmail.com> (raw)
In-Reply-To: <18538.45748.747143.611329@kahikatea.snap.net.nz>
Hello
[ sorry for the delayed reply ]
On Wed, Jul 2, 2008 at 12:41 AM, Nick Roberts <nickrob@snap.net.nz> wrote:
> > > It normally starts (ends) like this:
> > >
> > > ...
> > > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n")
> > > (recv . "\n^Z^Zpost-prompt\n")
> > > (send-item "set width 0\n" ignore)
> > > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n")
> > > (recv . "\n^Z^Zpost-prompt\n")
> > > (send-item "set height 0\n" ignore)
> > > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n")
> > > (recv . "\n^Z^Zpost-prompt\n&\"\\n^Z^Zerror-begin\\n\"\n&\"No registers.\\n\"\n~\"\\n\"\n~\"^Z^Zerror\\n\"\n^error,msg=\"No registers.\"\n(gdb) \n")
> > > (send-item "server interpreter mi -stack-info-frame\n" gdb-get-version))
> > >
> > > I understand why Emacs stops sending GDB commands after -stack-info-frame
>
> Sorry, I mean I don't understand
> ^^^^^
>
any debug mode we could use ?
> > ...
> > gdb-input-queue is a variable defined in `gdb-ui.el'.
> > Its value is
> > (("server info source\n" gdb-source-info)
> > ("server list\n" ignore)
> > ("server interpreter mi \"-file-list-exec-source-files\"\n"
> > gdb-set-gud-minor-mode-existing-buffers-1)
> > ("server interpreter mi -data-list-register-names\n" gdb-get-register-names)
> > ("set width 0\n" ignore)
> > ("set height 0\n" ignore))
>
> This should be nil.
>
>
> > > Isn't the kernel debugged through a remote stub in a patched gdb (kgdb)?
> >
> > Yes probably, I'm using a gdb patched by a third party but don't know and
> > can't figure out what has been patched...
>
> Then the patch may change behaviour in other ways. I suspect that it's not
> issuing some of the prompt annotations. A distributed patched gdb is covered
> by GPL so presumably you have access to the source code. What version of
> gdb is itbased on? and who are the third party?
>
GNU gdb STMicroelectronics/Linux Base 6.5-24 [build Oct 24 2007]
coming from
http://www.stlinux.com/download/
>
> > But I can add 2 more info about this issue:
> >
> > First, starting gdb from a shell works fine.
>
> I still don't know how you are using gdb. Presumably it's not running on the
> same machine as the kernel that you are debugging. How do you start
> gdb/connect to the kernel from a shell?
>
Sorry, gdb is connecting to a probe. I suppose gdb has been patched to do
that.
I can show you what gdb prompt in a shell if you want.
>
> > Second point is emacs 21 used to work.
>
> It's a different mode. With M-x gdb, if you use "gdb --fullname" instead of
> "gdb --annotate=3" with Emacs 22.x it should work as before. With Emacs 23,
> i.e. Emacs in CVS, you have to use M-x gud-gdb
hmm:
sh4-linux-gdb: unrecognized option '--fullname'
thanks
--
Francis
next prev parent reply other threads:[~2008-07-07 7:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 8:52 gud : Phase error in gdb-pre-prompt (got pre-emacs) Markus Grunwald
2008-06-27 10:18 ` Nick Roberts
2008-06-30 11:37 ` Francis Moreau
2008-06-30 22:15 ` Nick Roberts
2008-07-01 14:07 ` Francis Moreau
2008-07-01 22:41 ` Nick Roberts
2008-07-07 7:59 ` Francis Moreau [this message]
2008-07-07 9:19 ` Nick Roberts
2008-07-15 7:49 ` Francis Moreau
2008-07-22 14:49 ` Francis Moreau
[not found] ` <mailman.13892.1214569215.18990.help-gnu-emacs@gnu.org>
2008-06-27 14:23 ` Markus Grunwald
2008-06-27 23:49 ` Nick Roberts
2008-07-03 7:16 ` hui wang
2008-07-03 7:35 ` Nick Roberts
[not found] ` <mailman.13907.1214610613.18990.help-gnu-emacs@gnu.org>
2008-06-30 12:45 ` Markus Grunwald
2008-06-30 13:44 ` Francis Moreau
2008-07-01 2:04 ` Nick Roberts
[not found] ` <mailman.14044.1214879193.18990.help-gnu-emacs@gnu.org>
2008-07-02 14:18 ` Markus Grunwald
2008-07-03 0:22 ` Nick Roberts
[not found] ` <mailman.14136.1215044558.18990.help-gnu-emacs@gnu.org>
2008-07-03 7:51 ` Markus Grunwald
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=38b2ab8a0807070059n7950c46j7e2a33a07fcb1533@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=nickrob@snap.net.nz \
/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.