From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87r5wosm7m.fsf@sphinx.net.ru> Reply-To: Herbert Euler , 3840@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_ba64882c-aba6-4a4a-90f7-9cac7f24e597_" X-Trace: ger.gmane.org 1247537874 6159 80.91.229.12 (14 Jul 2009 02:17:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 02:17:54 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 3794@emacsbugs.donarmstrong.com To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 14 04:17:47 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQXaU-0003gN-PN for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 04:17:47 +0200 Original-Received: from localhost ([127.0.0.1]:42408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQXaS-00039E-Ce for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 22:17:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQXaK-00036k-0O for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 22:17:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQXaF-00032X-KX for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 22:17:35 -0400 Original-Received: from [199.232.76.173] (port=54296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQXaF-00032I-Aw for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 22:17:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45859) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQXaE-0000d3-R8 for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 22:17:31 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6E2HRGI010604; Mon, 13 Jul 2009 19:17:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6E255D8007944; Mon, 13 Jul 2009 19:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Herbert Euler Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 14 Jul 2009 02:05:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3840 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12475367466967 (code B ref -1); Tue, 14 Jul 2009 02:05:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Jul 2009 01:59:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6E1wxqe006956 for ; Mon, 13 Jul 2009 18:59:01 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQXIJ-0002BR-8g for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:58:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQXIE-00026B-MV for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:58:58 -0400 Original-Received: from [199.232.76.173] (port=48684 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQXIE-00025p-4h for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:58:54 -0400 Original-Received: from bay0-omc3-s9.bay0.hotmail.com ([65.54.246.209]:30192) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQXID-0005XE-Cu for bug-gnu-emacs@gnu.org; Mon, 13 Jul 2009 21:58:53 -0400 Original-Received: from BAY143-W18 ([65.55.154.53]) by bay0-omc3-s9.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 13 Jul 2009 18:58:52 -0700 X-Originating-IP: [124.127.101.0] Importance: Normal In-Reply-To: <87r5wosm7m.fsf@sphinx.net.ru> X-OriginalArrivalTime: 14 Jul 2009 01:58:52.0056 (UTC) FILETIME=[A2D42180:01CA0426] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 13 Jul 2009 22:17:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29397 Archived-At: --_ba64882c-aba6-4a4a-90f7-9cac7f24e597_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit > 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 --_ba64882c-aba6-4a4a-90f7-9cac7f24e597_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit > 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 h ere 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 aft! er 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&n bsp;  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
   &n! bsp; 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! Try it! --_ba64882c-aba6-4a4a-90f7-9cac7f24e597_--