X-Spam-Check-By: sourceware.org
Message-ID: <45FAF40C.49AC16E1@dessent.net>
Date: Fri, 16 Mar 2007 12:46:20 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Using cygwin1.dbg
References: <45FAC9DD.2050804@cwilson.fastmail.fm> <45FAE95C.CDC304AA@dessent.net> <45FAEE93.8080707@cwilson.fastmail.fm>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Charles Wilson wrote:

> Err, ok.  But shouldn't I be able to do source-level debugging, rather
> than asm-only?  (That is one difference between using cygwin1.dll alone,
> and with cygwin1.dbg: in the former case, cygwin calls are simply
> stepped over, even in I try to step into.  In the latter case, I can
> step into, but I get asm not source)

Yes, you should, but that's orthogonal to the popup messages.

> Hmmm--I just thought of something: do I need to replicate the source
> code path structure in the .dbg file:
> 
>    /ext/build/netrel/src/cygwin-1.5.24-2/...
> 
> perhaps by using a symlink, pointing to the location that setup.exe
> actually unpacked cygwin-1.5.24-2-src.tar.bz2?
> 
>    /usr/src/cygwin-1.5.24-2/...
> 
> Yep, that works.  I vaguely recall something in the gdb docs about
> overriding src paths, so that'll probably work too if I drag out TFM and
> actually R it.

Ah, that would do it.

In gdb >= 6.6 there is the "set/show substitute-path" feature for this
case.  But unfortunately the current packaged gdb is too old to contain
this.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

