From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#3650: M-x gdb unusable on Windows Date: Sat, 02 Nov 2019 07:04:39 +0100 Message-ID: <87zhheg6fc.fsf@marxist.se> References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@gnu.org> <4A3F1B05.7030105@gnu.org> <4A3F7058.902@gnu.org> <4A3F81AC.1070404@gnu.org> <4A3F8EAC.5010009@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17289"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 3650@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 02 07:05:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQmXA-0004LY-9w for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 07:05:12 +0100 Original-Received: from localhost ([::1]:45306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQmX9-0000mL-4Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 02:05:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34123) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQmX1-0000mF-5z for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 02:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQmX0-0003oD-3h for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 02:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQmWz-0003o9-V0 for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 02:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQmWz-0004WR-NF for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 02:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Nov 2019 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3650 X-GNU-PR-Package: emacs Original-Received: via spool by 3650-submit@debbugs.gnu.org id=B3650.157267469017360 (code B ref 3650); Sat, 02 Nov 2019 06:05:01 +0000 Original-Received: (at 3650) by debbugs.gnu.org; 2 Nov 2019 06:04:50 +0000 Original-Received: from localhost ([127.0.0.1]:57988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQmWo-0004Vv-EC for submit@debbugs.gnu.org; Sat, 02 Nov 2019 02:04:50 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:60421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQmWl-0004Vd-I6 for 3650@debbugs.gnu.org; Sat, 02 Nov 2019 02:04:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6cH5F7aGc0DAxUN2vlTADwTyZwur2BScF6dieToUfDc=; b=SpQELcFBdQUhpa82kf1KUmyF8q kvizNQ8/C5Dl82Cbfow2dnpdSNSeUIpOhK0l3POVFqvvom1CckPAabvSNqSX1EP0VgVQtzkYI3vde P2n/3QzO6/QlilETAsVGL0ImgfNsshcYbDLN+sGEG868A4IfpdUgIDK4fW+LsgT7n+tg=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:46234 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQmWf-0003S6-OQ; Sat, 02 Nov 2019 01:04:42 -0500 In-Reply-To: <4A3F8EAC.5010009@gnu.org> (Jason Rumney's message of "Mon, 22 Jun 2009 22:01:16 +0800") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170755 Archived-At: Jason Rumney writes: > Jason Rumney wrote: >> Kenichi Handa wrote: >> >>> By the way, I also installed gdb-6.8-mingw-3.tar.bz2. But, >>> with "M-x gdb", pp and pr commands doesn't work. They print >>> nothing. They do work when gdb is invoked from command >>> line. Do you know what is wrong? >>> >> >> I've often had problems in the past using debuggers under Emacs on Windows >> (under Emacs 21 and early 22 development versions though, so I haven't tried >> the new gdb-ui extensively), so I always use the command line. > > I just tried it, and it seems to be even worse than I remembered. > > Problem 1 is that the default directory of gdb is the directory where the Emacs > executable is even though I started it from the source directory and specified > oo/i386/emacs.exe as the executable to debug. This means that .gdbinit needs to > be "source"d in manually. In addition, gud is unable to find source files that > are not already being visited: > > (gdb) break fontset_find_font > Breakpoint 1 at 0x10f9dd7: file fontset.c, line 527. > (gdb) list :1 > No source file named in loaded symbols. > > > Problem 2 is that Emacs output (including the results of pp and pr) is > redirected to a buffer entitled *input/output of emacs.exe*, or at least > that is what the intention appears to be. That buffer is populated as follows > when gdb starts, and never updates: > > c:\GnuWin32\bin\sleep.exe: cannot read realtime clock: Invalid argument > Process gdb-inferior exited abnormally with code 1 > > Problem 3 is that there appears to be a menu toggle for disabling this output > redirection, but it does not function. Instead, I see this in *Messages*: > > Symbol's function definition is void: gdb-use-separate-io-buffer > > > Problem 4 is that enabling GUD tooltips results messages like the following: > > error in process filter: Args out of range: "", 0, -1 [2 times] > > > Problem 5 is the general slowness. This one is probably down to Windows poor > subprocess and pipe support, but the rest seem to be real problems within > gud/gdb-mi. This was reported 10 years ago. Is this still an issue on modern versions of Emacs? Best regards, Stefan Kangas