GNU bug report logs - #25959
No stop button in gdb toolbar

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Glenn Morris <rgm@HIDDEN>; dated Fri, 3 Mar 2017 21:29:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 6 Mar 2017 19:41:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 06 14:41:26 2017
Received: from localhost ([127.0.0.1]:43200 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ckyVZ-0007tb-U2
	for submit <at> debbugs.gnu.org; Mon, 06 Mar 2017 14:41:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39700)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1ckyVY-0007tO-Sq
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 14:41:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ckyVT-0000BH-2B
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 14:41:19 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52854)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ckyVS-0000B9-VE
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 14:41:18 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ckyVR-00020H-Ej; Mon, 06 Mar 2017 14:41:17 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN> <83k285l8vt.fsf@HIDDEN>
 <amefyb8eb4.fsf@HIDDEN> <83pohvhy79.fsf@HIDDEN>
 <0oh936z3mj.fsf@HIDDEN> <837f42i6d6.fsf@HIDDEN>
X-Spook: Colombia Exercise covert video Disaster assistance
X-Ran: w"[6<~fs+W0qiE{&Adt5ceSL/]~ye4&atqn-u"V::;Gk@~j?[+<;`Bj+7^vR\HN&wK/itM
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 06 Mar 2017 14:41:17 -0500
In-Reply-To: <837f42i6d6.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 06 Mar
 2017 20:53:57 +0200")
Message-ID: <pdinnmw5uq.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Eli Zaretskii wrote:

> And if you revert that hunk, then the behavior is more according to
> expectations, with GDB 7.11?

On clicking Go, gdb-running-threads-count remains at 0.
The Stop button still doesn't stop.
On typing C-c C-c I get
  WARNING! Discarding GDB handler with token #18
On clicking Go I get just a Stop button.
At this point the Stop button works.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 6 Mar 2017 18:54:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 06 13:54:21 2017
Received: from localhost ([127.0.0.1]:43158 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ckxm1-0006i5-41
	for submit <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:54:21 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51787)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ckxlz-0006hs-DK
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:54:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ckxlr-0002B1-4M
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:54:14 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52103)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ckxlr-0002Ax-0h
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:54:11 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2308
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ckxlp-0000I6-Q7; Mon, 06 Mar 2017 13:54:10 -0500
Date: Mon, 06 Mar 2017 20:53:57 +0200
Message-Id: <837f42i6d6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <0oh936z3mj.fsf@HIDDEN> (message from Glenn Morris on
 Mon, 06 Mar 2017 13:01:08 -0500)
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN> <83k285l8vt.fsf@HIDDEN>
 <amefyb8eb4.fsf@HIDDEN> <83pohvhy79.fsf@HIDDEN>
 <0oh936z3mj.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: 25959 <at> debbugs.gnu.org
> Date: Mon, 06 Mar 2017 13:01:08 -0500
> 
> With:
> 
>   GNU gdb (GDB) Red Hat Enterprise Linux 7.11-67.el7
> 
> the stop buttons appears, but clicking it doesn't stop the program.
> gdb-running-threads-count remains at 0 while the process is running.
> gdb-non-stop is now nil.
> 
> If I type: C-c C-c the program stops and a Go button appears.
> If I click that, I get both a Stop and a Go button.
> gdb-stopped-threads-count is 1, and gdb-running-threads-count remains
> at 0. This is with gdb-gud-control-all-threads t, the default.

And if you revert that hunk, then the behavior is more according to
expectations, with GDB 7.11?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 6 Mar 2017 18:01:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 06 13:01:22 2017
Received: from localhost ([127.0.0.1]:43090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ckwwk-0004qq-JZ
	for submit <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:01:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34662)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1ckwwi-0004kj-Km
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:01:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ckwwc-0008CL-O5
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:01:15 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51208)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ckwwc-0008C6-LV
 for 25959 <at> debbugs.gnu.org; Mon, 06 Mar 2017 13:01:14 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ckwwW-0002yP-Mr; Mon, 06 Mar 2017 13:01:09 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN> <83k285l8vt.fsf@HIDDEN>
 <amefyb8eb4.fsf@HIDDEN> <83pohvhy79.fsf@HIDDEN>
X-Spook: Fort Hancock DNDO White Water Lockdown CID Erosion
X-Ran: m(W57'zF~4N3qG/[_;9P&#~_-mqe@m`$W,2{m/j?Rdj<}&5W;^N]zeVUcE*\(.Xb?HA?2s
X-Hue: blue
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 06 Mar 2017 13:01:08 -0500
In-Reply-To: <83pohvhy79.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 06 Mar
 2017 05:38:02 +0200")
Message-ID: <0oh936z3mj.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Eli Zaretskii wrote:

> Hmm... that might be too old.  Is there any chance you could try with
> a newer one?

With:

  GNU gdb (GDB) Red Hat Enterprise Linux 7.11-67.el7

the stop buttons appears, but clicking it doesn't stop the program.
gdb-running-threads-count remains at 0 while the process is running.
gdb-non-stop is now nil.

If I type: C-c C-c the program stops and a Go button appears.
If I click that, I get both a Stop and a Go button.
gdb-stopped-threads-count is 1, and gdb-running-threads-count remains
at 0. This is with gdb-gud-control-all-threads t, the default.

The program being debugged is just an infinite while loop.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 6 Mar 2017 03:38:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 05 22:38:24 2017
Received: from localhost ([127.0.0.1]:41603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ckjTc-0001yC-2F
	for submit <at> debbugs.gnu.org; Sun, 05 Mar 2017 22:38:24 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52959)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ckjTa-0001y0-Pw
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 22:38:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ckjTQ-0004bd-Nu
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 22:38:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41332)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ckjTQ-0004bZ-Kk
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 22:38:12 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1922
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ckjTO-00062D-Im; Sun, 05 Mar 2017 22:38:11 -0500
Date: Mon, 06 Mar 2017 05:38:02 +0200
Message-Id: <83pohvhy79.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <amefyb8eb4.fsf@HIDDEN> (message from Glenn Morris on
 Sun, 05 Mar 2017 19:00:15 -0500)
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN> <83k285l8vt.fsf@HIDDEN>
 <amefyb8eb4.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: 25959 <at> debbugs.gnu.org
> Date: Sun, 05 Mar 2017 19:00:15 -0500
> 
> > What version of GDB do you have?
> 
> I should have said:
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7

Hmm... that might be too old.  Is there any chance you could try with
a newer one?  Or maybe you already did?

> > Anyway, I guess reverting only the first hunk of 2e78e6a suffices?
> 
> Right.
> 
> Though I don't know if it is safe to revert any of 2e78e6a, given that
> it says these signals never reply, and comments in
> https://debbugs.gnu.org/13845#8
> talks about gdb replying in order.

My problem with the original report is that the recipe for reproducing
the bug is so complex I cannot wrap my head around what's going on
there.  One way forard could be to see if reverting the first hunk of
2e78e6a reintroduces the problem in that recipe.  Or maybe we should
just revert it and see if anyone hollers.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 6 Mar 2017 00:00:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 05 19:00:23 2017
Received: from localhost ([127.0.0.1]:41519 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ckg4d-0005Gu-2A
	for submit <at> debbugs.gnu.org; Sun, 05 Mar 2017 19:00:23 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1ckg4c-0005Gj-HE
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 19:00:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ckg4W-0003pG-C2
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 19:00:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38019)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ckg4W-0003pC-8w
 for 25959 <at> debbugs.gnu.org; Sun, 05 Mar 2017 19:00:16 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ckg4V-0003mU-L6; Sun, 05 Mar 2017 19:00:15 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN> <83k285l8vt.fsf@HIDDEN>
X-Spook: Earthquake Relief AMW Terror MIT-LL INS Juarez weapons of
X-Ran: )g6g4N;HXB7d>:h2ngZh{P~&'Oe=qF2Gh`sn9t2C2W=+E?\}~rZ-^G,WovUn0&P8(l'xBO
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 05 Mar 2017 19:00:15 -0500
In-Reply-To: <83k285l8vt.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 04 Mar
 2017 10:54:30 +0200")
Message-ID: <amefyb8eb4.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Eli Zaretskii wrote:

>> Reverting 2e78e6a fixes this for me, so I've cc'd the author of that change.
>
> What version of GDB do you have?

I should have said:
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7

> FWIW, the "Stop" button does appear for me, so this could depend on
> whether GDB and/or the target supports non-stop execution (mine
> doesn't).

Mine apparently supports non-stop.

> Anyway, I guess reverting only the first hunk of 2e78e6a suffices?

Right.

Though I don't know if it is safe to revert any of 2e78e6a, given that
it says these signals never reply, and comments in
https://debbugs.gnu.org/13845#8
talks about gdb replying in order.
(My comment may be nonsense, I know nothing about this code.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 4 Mar 2017 08:54:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 04 03:54:56 2017
Received: from localhost ([127.0.0.1]:39104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ck5Sp-0007k9-TR
	for submit <at> debbugs.gnu.org; Sat, 04 Mar 2017 03:54:56 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56334)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ck5Sn-0007jw-Si
 for 25959 <at> debbugs.gnu.org; Sat, 04 Mar 2017 03:54:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ck5Sf-0003lA-F9
 for 25959 <at> debbugs.gnu.org; Sat, 04 Mar 2017 03:54:48 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44072)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ck5Sf-0003l1-Bw
 for 25959 <at> debbugs.gnu.org; Sat, 04 Mar 2017 03:54:45 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3550
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ck5Se-0006Jy-3L; Sat, 04 Mar 2017 03:54:44 -0500
Date: Sat, 04 Mar 2017 10:54:30 +0200
Message-Id: <83k285l8vt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <qtmvd27zvp.fsf@HIDDEN> (message from Glenn Morris on
 Fri, 03 Mar 2017 17:35:06 -0500)
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
 <qtmvd27zvp.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: 25959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Glenn Morris <rgm@HIDDEN>
> Date: Fri, 03 Mar 2017 17:35:06 -0500
> 
> Glenn Morris wrote:
> 
> > emacs -Q -f gdb
> > gdb -i=mi a.out RET
> >
> > Choose "Go" button in toolbar, program starts running, "Go" disappears.
> > Now there should be a "Stop" button, but there isn't.
> >
> > gdb-show-stop-p returns nil because gdb-running-threads-count is 0.
> >
> > It works in 24.3, and fails in 24.4 through to current master.
> 
> Reverting 2e78e6a fixes this for me, so I've cc'd the author of that change.

What version of GDB do you have?

FWIW, the "Stop" button does appear for me, so this could depend on
whether GDB and/or the target supports non-stop execution (mine
doesn't).  My GDB version is 7.12, for the record.

Anyway, I guess reverting only the first hunk of 2e78e6a suffices?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at 25959 <at> debbugs.gnu.org:


Received: (at 25959) by debbugs.gnu.org; 3 Mar 2017 22:35:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 03 17:35:14 2017
Received: from localhost ([127.0.0.1]:38903 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cjvn8-0004sc-2m
	for submit <at> debbugs.gnu.org; Fri, 03 Mar 2017 17:35:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46112)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1cjvn7-0004sS-KB
 for 25959 <at> debbugs.gnu.org; Fri, 03 Mar 2017 17:35:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1cjvn1-0005pv-KT
 for 25959 <at> debbugs.gnu.org; Fri, 03 Mar 2017 17:35:08 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35406)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1cjvn1-0005p6-Hl; Fri, 03 Mar 2017 17:35:07 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1cjvn1-0002OH-0K; Fri, 03 Mar 2017 17:35:07 -0500
From: Glenn Morris <rgm@HIDDEN>
To: 25959 <at> debbugs.gnu.org
Subject: Re: bug#25959: No stop button in gdb toolbar
References: <lobmti9hjo.fsf@HIDDEN>
X-Spook: FAMS Storm Leak IRA offensive information warfare weapons
X-Ran: M,F({.P]v?kV'i="E&WKh])c"d.2Q/I5[hB?6TuoG_V'YFr-1Z!Ubu=>`{?`3Oc\<`m#N0
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 03 Mar 2017 17:35:06 -0500
In-Reply-To: <lobmti9hjo.fsf@HIDDEN> (Glenn Morris's message of
 "Fri, 03 Mar 2017 16:28:11 -0500")
Message-ID: <qtmvd27zvp.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25959
Cc: jpgravel@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Glenn Morris wrote:

> emacs -Q -f gdb
> gdb -i=mi a.out RET
>
> Choose "Go" button in toolbar, program starts running, "Go" disappears.
> Now there should be a "Stop" button, but there isn't.
>
> gdb-show-stop-p returns nil because gdb-running-threads-count is 0.
>
> It works in 24.3, and fails in 24.4 through to current master.

Reverting 2e78e6a fixes this for me, so I've cc'd the author of that change.


commit 2e78e6a
Author: Jean-Philippe Gravel <jpgravel@HIDDEN>
Date:   Tue May 14 14:34:13 2013 -0400

    * progmodes/gdb-mi.el (gdb-running, gdb-starting): Remove
    signals for which replies are never received.

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 2799eec..a6ad573 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -2376,8 +2376,7 @@ gdb-running
    (propertize gdb-inferior-status 'face font-lock-type-face))
   (when (not gdb-non-stop)
     (setq gud-running t))
-  (setq gdb-active-process t)
-  (gdb-emit-signal gdb-buf-publisher 'update-threads))
+  (setq gdb-active-process t))
 
 (defun gdb-starting (_output-field _result)
   ;; CLI commands don't emit ^running at the moment so use gdb-running too.
@@ -2385,11 +2384,7 @@ gdb-starting
   (gdb-force-mode-line-update
    (propertize gdb-inferior-status 'face font-lock-type-face))
   (setq gdb-active-process t)
-  (setq gud-running t)
-  ;; GDB doesn't seem to respond to -thread-info before first stop or
-  ;; thread exit (even in non-stop mode), so this is useless.
-  ;; Behavior may change in the future.
-  (gdb-emit-signal gdb-buf-publisher 'update-threads))
+  (setq gud-running t))
 
 ;; -break-insert -t didn't give a reason before gdb 6.9
 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2017 21:28:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 03 16:28:20 2017
Received: from localhost ([127.0.0.1]:38869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cjukO-0003KH-B3
	for submit <at> debbugs.gnu.org; Fri, 03 Mar 2017 16:28:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60515)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1cjukM-0003K0-NK
 for submit <at> debbugs.gnu.org; Fri, 03 Mar 2017 16:28:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1cjukG-0004vB-Mh
 for submit <at> debbugs.gnu.org; Fri, 03 Mar 2017 16:28:13 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34314)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1cjukG-0004v3-JX
 for submit <at> debbugs.gnu.org; Fri, 03 Mar 2017 16:28:12 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1cjukG-0000De-5C; Fri, 03 Mar 2017 16:28:12 -0500
From: Glenn Morris <rgm@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: No stop button in gdb toolbar
X-Spook: Palestine Liberation Front bank Cyber Command Chemical
X-Ran: n`<+,XFR_,X%fN=+-@zP?o`JA^:1Ze.kUyCQGt^ywL"wwd=blPL/sSZcm}rOWvVfp\@V3w
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 03 Mar 2017 16:28:11 -0500
Message-ID: <lobmti9hjo.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Package: emacs
Version: 24.4

emacs -Q -f gdb
gdb -i=mi a.out RET

Choose "Go" button in toolbar, program starts running, "Go" disappears.
Now there should be a "Stop" button, but there isn't.

gdb-show-stop-p returns nil because gdb-running-threads-count is 0.

It works in 24.3, and fails in 24.4 through to current master.




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25959; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 6 Mar 2017 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.