From: Herbert Euler <herberteuler@hotmail.com>
To: <dima@sphinx.net.ru>
Cc: bug-gnu-emacs@gnu.org, 3794@emacsbugs.donarmstrong.com
Subject: bug#3840: Several other problems in gdb-mi [RE: bug#3794: Error in json from gdb-ui]
Date: Tue, 14 Jul 2009 09:58:51 +0800 [thread overview]
Message-ID: <BAY143-W1818A9F7676692F90E85E5DA230@phx.gbl> (raw)
In-Reply-To: <87r5wosm7m.fsf@sphinx.net.ru>
[-- Attachment #1: Type: text/plain, Size: 2196 bytes --]
> From: dima@sphinx.net.ru
> To: herberteuler@hotmail.com
> CC: 3794@emacsbugs.donarmstrong.com; bug-gnu-emacs@gnu.org
> CC: nickrob@snap.net.nz
> Subject: Re: bug#3794: Error in json from gdb-ui
> Date: Fri, 10 Jul 2009 17:26:37 +0400
>
>
> > I tried M-x gdb to run emacs under gdb. The command line was
> >
> > gdb -i=mi ~/src/emacs/src/emacs
> >
> > and I got the error '(json-object-format ":" 44). Here is the backtrace:
>
> Thank you for reporting this bug.
>
> I could reproduce your problem and I wrote a workaround which fixes the
> bug for me. Could you please try the attached patch for gdb-mi.el?
That patch works for me, too. Thanks.
But here are some other problems:
1. When there's file .gdbinit in the directory of the debugged
program, and there're breakpoints in that file, M-x gdb showed those
breakpoints after started previously, while the new implementation
doesn't, unless requesting them explicitly with "info b".
2. The command "shell" is broken: In M-x gdb,
shell ps aux | grep emacs
results in no output; but in a "real" gdb, the output looks like this:
shell ps aux | grep emacs
&"shell ps aux | grep emacs\n"
xgp 4886 1.3 0.1 80796 25900 pts/1 T 09:38 0:08 emacs
xgp 4936 0.3 0.1 77688 22568 pts/10 T+ 09:39 0:02 ./emacs
xgp 5209 0.0 0.1 28128 16548 pts/6 Ss+ 09:46 0:00 /usr/local/bin/gdb -i=mi emacs
xgp 5353 0.4 0.1 28184 16584 pts/1 S+ 09:49 0:00 gdb -i=mi emacs
xgp 5354 0.0 0.0 52800 976 pts/1 S+ 09:49 0:00 bash -c ps aux | grep emacs
xgp 5356 0.0 0.0 51124 688 pts/1 S+ 09:49 0:00 grep emacs
^done
3. Previously, typing directly RET at the M-x gdb prompt repeats the
last command in history. This is also what a "real" gdb does. But
in the new implementation, this does nothing now.
As Nick said, this implementation is still in developing. Should I
wait then?
Regards,
Guanpeng Xu
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
[-- Attachment #2: Type: text/html, Size: 3134 bytes --]
next prev parent reply other threads:[~2009-07-14 1:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 12:14 bug#3794: Error in json from gdb-ui Herbert Euler
2009-07-10 4:38 ` Nick Roberts
2009-07-11 3:04 ` Glenn Morris
2009-07-10 13:26 ` Dmitry Dzhus
2009-07-14 1:58 ` Herbert Euler [this message]
2009-07-14 13:46 ` bug#3845: Several other problems in gdb-mi [RE: bug#3794: Error in json from gdb-ui] Dmitry Dzhus
2009-07-31 8:06 ` bug#3794: " Herbert Euler
2009-08-04 18:40 ` bug#4035: " Dmitry Dzhus
2009-08-06 2:20 ` bug#3794: " Herbert Euler
2009-08-06 2:29 ` Herbert Euler
2009-08-16 23:11 ` Dmitry Dzhus
2009-09-10 3:46 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY143-W1818A9F7676692F90E85E5DA230@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=3794@emacsbugs.donarmstrong.com \
--cc=3840@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=dima@sphinx.net.ru \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).