From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80206 invoked by alias); 12 Oct 2017 19:47:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 79894 invoked by uid 89); 12 Oct 2017 19:47:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: limerock01.mail.cornell.edu Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Oct 2017 19:47:53 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v9CJlptW029263 for ; Thu, 12 Oct 2017 15:47:51 -0400 Received: from [192.168.0.4] (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v9CJlnFi027241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 12 Oct 2017 15:47:50 -0400 Subject: Re: gdb 7.11.1-2 started within emacs fails To: cygwin@cygwin.com References: <207e93bf-8f7e-57a3-1abc-cc645c79020c@cornell.edu> <9bed0b67-2930-ee6b-8361-4bf4d9d7d542@dronecode.org.uk> <9fbef412-169a-48fd-362e-249e0b585481@cornell.edu> <934635e9-edcd-9668-76e1-b237efc918ff@dronecode.org.uk> From: Ken Brown Message-ID: <97eae61a-1b6c-b54f-4eb9-1f1f84c502fd@cornell.edu> Date: Thu, 12 Oct 2017 19:47:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <934635e9-edcd-9668-76e1-b237efc918ff@dronecode.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00118.txt.bz2 On 10/12/2017 1:24 PM, Jon Turney wrote: > On 11/10/2017 21:32, Ken Brown wrote: >> On 10/11/2017 3:44 PM, Jon Turney wrote: >>> On 27/09/2016 21:15, Ken Brown wrote: >>>> On 9/27/2016 2:47 PM, Rockefeller, Harry wrote: >>>>> Using program foo: >>>>>       program foo >>>>>       e = 1.0 >>>>>       stop >>>>>       end >>>>> >>>>> $ /usr/bin/gfortran    -g foo.f -o foo >>>>> >>>>> Emacs version info: GNU Emacs 25.1.1 (i686-pc-cygwin, GTK+ Version >>>>> 3.18.9) of 2016-09-17 >>>>> >>>>> Inside emacs I ran M-x gud-gdb and got >>>>> ... GNU gdb (GDB) (Cygwin 7.11.1-2) 7.11.1 ... >>>>> (gdb) b 1 >>>>> Breakpoint 1 at 0x4011d6: file foo.f, line 1. >>>>> (gdb) r >>>>> Starting program: /cygdrive/c/Users/harryr/foo.exe >>>>> [New Thread 6296.0x22ac] >>>>> [New Thread 6296.0x24d4] >>>>> readline: readline_callback_read_char() called with no handler! >>>>> Debugger aborted (core dumped) >>>>> >>>>> Foo written in C++ also fails with the same message. >>>>> Running gdb foo in bash gives the expected result: >>>>> gdb stops at first executable line prompting for next gdb command. >>>> >>>> I can confirm that this happens also with gdb-7.11.1-1 but not >>>> gdb-7.10.1-1.  (I tested on x86_64, since gdb-7.10.1-1 is broken on >>>> x86.) >>>> >>>> It also fails with M-x gdb instead of M-x gud-gdb, but with a >>>> different error message: >>>> >>>>    Failed to resume program execution (ContinueDebugEvent failed, >>>> error 87) >>> >>> These problem seem not longer occur due to upstream changes in gdb 7.12. >> >> Everything seems fine on x86_64 and with M-x gud-gdb on x86.  But when >> I run M-x gdb on x86 (even with no file), gdb crashes. > > Thanks for testing. > > It seems this issue is known [1], so I made a gdb 7.12.1-2 with the > work-around from there applied, which seems to fix M-x gdb on x86. Confirmed. Thanks. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple