delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/06/17/10:53:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=A/AhWt40/k5Bch+4aereTtCoTmFZx
sphjQNJjLmnx/8n5RElAoxSWaT20Idd3q8Z2DZ71WsbqQq4YASSbZ7XuMBPHFhau
fwBRWXSazXfwi5W3yE8SykjyNslO1qxGwcFJMGKdwCCALLelDVW7egQVfas5RHVK
rNSP5NpfNVLSRI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=YDgQPsWJJu6wt0FSsdVuvi0e19g=; b=AbY
lhUplqFP6U8BTAqh+rkTvJ2cbum5bIp54DhkK49wea1ZsYVtUR8pMmSUvprcTFtk
wvfSFXzLMpaY7NaEFNlZ2AnK14d3SE/OJorFNWWT4dM524cWAH+eCg2lDZQdzuYa
E9QazEUM7rKwnWJE1RZzAzsA7Yyq9xLYZ2Y1IxMs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-yh0-f42.google.com
MIME-Version: 1.0
X-Received: by 10.129.48.79 with SMTP id w76mr7152601yww.3.1434552821630; Wed, 17 Jun 2015 07:53:41 -0700 (PDT)
Date: Wed, 17 Jun 2015 10:53:41 -0400
Message-ID: <CAH5rLZVG8L_PW6e5PBK3SHhC9YRTQrew1JmNyuDdDhg9re386A@mail.gmail.com>
Subject: Problems running gdb in emacs on Windows 8.1
From: "William M. (Mike) Miller" <william DOT m DOT miller AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

I'm having numerous problems recently running gdb inside emacs (both
-w32 and -X11):

1) The stack trace window requires one or two gdb commands to catch up
with the current stack frame.  E.g., I'll hit a breakpoint after "run"
and then type "up"; the frame pointer still points at frame 0.  I'll
type "up" again, so I'm actually looking at frame 2, but the frame
pointer now points at frame 1.  I'll type "p variable_name", and now
the frame pointer correctly points at frame 2.

2) Normally the gdb command window is the upper-left window with the
source displayed in the center-left window.  Occasionally (I haven't
been able to find a pattern), when I execute a gdb command the
upper-left window will switch away from the *gud-xxx.exe* buffer to
display the current source location, leaving the center-left window
also displaying a source window.  If I switch the center-left window
to *gud-xxx.exe", the window configuration appears to be stable, with
the source updating correctly in the upper-left window during the rest
of the debugger session.  (Simply switching the upper-left window back
to *gud-xxx.exe* is generally not stable, with that window likely to
switch back to a source buffer within a couple of gdb commands.)

3) My executable has a number of debugging-output functions that are
intended to print a data structure to stderr and return.  When I call
one of these using "p db_foo(x)", unless it is the first gdb command
after a breakpoint, all my threads will switch from "stopped" to
"running" status so that I can no longer step, etc.

All of these things used to work fine.  I'm not sure exactly when
things changed, as I didn't update my Cygwin installation for quite a
while.  My current installation has gdb 7.9.1-1 and emacs 24.5-1.

Any thoughts on what the problem might be and how to fix it would be
appreciated.

-- 
William M. (Mike) Miller | Edison Design Group
william DOT m DOT miller AT gmail DOT com

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019