From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3650: M-x gdb unusable on Windows Date: Mon, 22 Jun 2009 22:01:16 +0800 Message-ID: <4A3F8EAC.5010009@gnu.org> References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@gnu.org> <4A3F1B05.7030105@gnu.org> <4A3F7058.902@gnu.org> <4A3F81AC.1070404@gnu.org> Reply-To: Jason Rumney , 3650@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245680336 16951 80.91.229.12 (22 Jun 2009 14:18:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 14:18:56 +0000 (UTC) To: emacs-pretest-bug Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 16:18:52 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 1MIkMF-0007cT-Ss for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 16:18:52 +0200 Original-Received: from localhost ([127.0.0.1]:45922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIkMF-0007tM-6b for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 10:18:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIkL1-0007KD-S8 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 10:17:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIkKr-0007Hi-H9 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 10:17:30 -0400 Original-Received: from [199.232.76.173] (port=33355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIkKr-0007HL-6x for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 10:17:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33421) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MIkKq-0005tI-N3 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 10:17:25 -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 n5MEHMZO008168; Mon, 22 Jun 2009 07:17:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5MEA6Ao006461; Mon, 22 Jun 2009 07:10:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 22 Jun 2009 14:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3650 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12456793224616 (code B ref -1); Mon, 22 Jun 2009 14:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Jun 2009 14:02:02 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5ME1vEk004611 for ; Mon, 22 Jun 2009 07:01:58 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:47944) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MIk5s-00038n-Ty for emacs-pretest-bug@gnu.org; Mon, 22 Jun 2009 10:01:57 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MIk5s-0002mC-1S for emacs-pretest-bug@gnu.org; Mon, 22 Jun 2009 10:01:56 -0400 Original-Received: from mail-px0-f176.google.com ([209.85.216.176]:57980) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIk5r-0002lr-KP for emacs-pretest-bug@gnu.org; Mon, 22 Jun 2009 10:01:55 -0400 Original-Received: by pxi6 with SMTP id 6so3632488pxi.14 for ; Mon, 22 Jun 2009 07:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=d9+h7dAxQ7ohFJGcg/I/FuuSgiYYZiqBIfduUsLNdx4=; b=r3Smx//RiDvO+WwzD3tb8+XmpreJfoSx/jbm4OcbHbP2qUAmoiKboMjHukmPvMbohX w5AXokiX4wedzhBUhi/cPR//Nh3X6LkWrvh9asG2A//K0/RVNDqs/zklw+X2iWrVX67A Z/I/utNK8QagokLamKWpT9mX3KlTvmbDj1PAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=P18iGXYjHz1zafMs2bQ9PTULbK+T6Y+RYZw7Xjb32knrgsYbab/4ZDwCcZlwcAK4gk EfpMMiymLkzYtbfVPjBX6MzS9ZJQnDEPnw3XzleDORGBMvZ35P1Qe0qw9o08WWGx6gIS FS5RZJPcCNmUbZemnLe63BIQefthnJGvW6Jgw= Original-Received: by 10.142.113.17 with SMTP id l17mr2751849wfc.299.1245679311039; Mon, 22 Jun 2009 07:01:51 -0700 (PDT) Original-Received: from ?192.168.249.26? ([124.13.3.16]) by mx.google.com with ESMTPS id 22sm841030wfg.27.2009.06.22.07.01.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Jun 2009 07:01:50 -0700 (PDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4A3F81AC.1070404@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 22 Jun 2009 10:17:29 -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:28905 gmane.emacs.pretest.bugs:24673 Archived-At: 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.