From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neal Becker Newsgroups: gmane.emacs.devel Subject: Re: gdb 24.0.93.1 gdb doesn't work worth a damn Date: Thu, 1 Mar 2012 06:53:59 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0443066c95b23504ba2d1d34 X-Trace: dough.gmane.org 1330602869 8062 80.91.229.3 (1 Mar 2012 11:54:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2012 11:54:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kaushik Srenevasan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 01 12:54:28 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S34aW-0000Ai-7Y for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2012 12:54:24 +0100 Original-Received: from localhost ([::1]:42637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S34aV-0006OY-AW for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2012 06:54:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S34aM-0006M3-5A for emacs-devel@gnu.org; Thu, 01 Mar 2012 06:54:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S34aA-0004Uc-PX for emacs-devel@gnu.org; Thu, 01 Mar 2012 06:54:13 -0500 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:50864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S34aA-0004Tm-Gc for emacs-devel@gnu.org; Thu, 01 Mar 2012 06:54:02 -0500 Original-Received: by wibhi20 with SMTP id hi20so412078wib.0 for ; Thu, 01 Mar 2012 03:53:59 -0800 (PST) Received-SPF: pass (google.com: domain of ndbecker2@gmail.com designates 10.180.82.132 as permitted sender) client-ip=10.180.82.132; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ndbecker2@gmail.com designates 10.180.82.132 as permitted sender) smtp.mail=ndbecker2@gmail.com; dkim=pass header.i=ndbecker2@gmail.com Original-Received: from mr.google.com ([10.180.82.132]) by 10.180.82.132 with SMTP id i4mr1529720wiy.12.1330602839634 (num_hops = 1); Thu, 01 Mar 2012 03:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xyZ3dvNB6x1HcWRCsYrPRzmxjNSJPL8+gy8X3kJvUvg=; b=G2k5Vz4WGeTnkmxXbxSL4BKLCMopZHSlaanj6y/rm5H8lUqebveofrnRE1P9ggCZm6 MKmKxDEYxpJurBfBYEtpl3GvspLKcSduUqRkeUd6h7ie2hZbZUQn+uUWAj3ZXMkm83CP AbLAi9wTwhgxmyXpDd7UCtVWluZGr7RqgFb70= Original-Received: by 10.180.82.132 with SMTP id i4mr1222888wiy.12.1330602839486; Thu, 01 Mar 2012 03:53:59 -0800 (PST) Original-Received: by 10.223.108.3 with HTTP; Thu, 1 Mar 2012 03:53:59 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148858 Archived-At: --f46d0443066c95b23504ba2d1d34 Content-Type: text/plain; charset=ISO-8859-1 Yes, that's a lot better. Only noticable problem now, (with just brief test), is that when the bp is first hit, the (gdb) prompt does not appear. On Wed, Feb 29, 2012 at 6:20 PM, Kaushik Srenevasan wrote: > On Wed, Feb 29, 2012 at 8:15 AM, Neal Becker wrote: > > gdb doesn't seem to be usable. I get lots of: > > > > error in process filter: gdb-breakpoints-list-handler-custom: Wrong type > > argument: stringp, nil > > error in process filter: Wrong type argument: stringp, nil > > > > and I can't seem to really use it at all. > > > > I hit this yesterday too. GDB-MI doesn't seem to be able to handle > what GDB calls "multiple" breakpoints. i.e. a breakpoint that GDB sets > on every overloaded function that matches an expression. The problem > is that the MI output has an extra field - "type" only on the "parent > breakpoint", while GDB-MI expects to find it even on "child > breakpoints". > > I've attached a patch. Could you check if it works for you too? > > -Kaushik > > PS: While at it, I also cleaned up what gets displayed in the absence > of fields in MI output. The breakpoint table now shows "" instead of > nil. > --f46d0443066c95b23504ba2d1d34 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, that's a lot better.

Only noticable problem now= , (with just brief test), is that when the bp is first hit, the (gdb) promp= t does not appear.

On Wed, Feb 29, 2012 a= t 6:20 PM, Kaushik Srenevasan <ksrenevasan@gmail.com> wrote:
On Wed, Feb 29, 2012 at 8:= 15 AM, Neal Becker <ndbecker2@gma= il.com> wrote:
> gdb doesn't seem to be usable. =A0I get lots of:
>
> error in process filter: gdb-breakpoints-list-handler-custom: Wrong ty= pe
> argument: stringp, nil
> error in process filter: Wrong type argument: stringp, nil
>
> and I can't seem to really use it at all.
>

I hit this yesterday too. GDB-MI doesn't seem to be able to handl= e
what GDB calls "multiple" breakpoints. i.e. a breakpoint that GDB= sets
on every overloaded function that matches an expression. The problem
is that the MI output has an extra field - "type" only on the &qu= ot;parent
breakpoint", while GDB-MI expects to find it even on "child
breakpoints".

I've attached a patch. Could you check if it works for you too?

=A0 =A0 =A0 =A0 =A0 =A0-Kaushik

PS: While at it, I also cleaned up what gets displayed in the absence
of fields in MI output. The breakpoint table now shows "" instead= of
nil.

--f46d0443066c95b23504ba2d1d34--