X-Spam-Check-By: sourceware.org
Date: Sun, 28 May 2006 17:45:04 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: note about how-to-debug-cygwin.txt
Message-ID: <20060528214504.GB3974@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <447A0F37.2080704@freenet.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <447A0F37.2080704@freenet.de>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Sun, May 28, 2006 at 10:59:35PM +0200, Ralf Habacker wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>In the how-to-debug-cygwin.txt there is listed how to run application
>using strace in gdb:
>
>To debug this scenario, do something like this:
>
>    bash$ gdb -nw yourapp.exe
>    (gdb) dll cygwin1
>    (gdb) l dll_crt0_1
>    (gdb) b <<first line in the function>>
>    (gdb) run
>    (gdb) set strace.active=1
>    (gdb) continue
>
>
>According to winsup/cygwin/include/sys/strace.h the class member active
>is known now as _active.

I've changed this.

>I have tried to get this running in gdb (cvs), but there is no output in
>gdb.

Getting output from gdb was not the intent of this section.  Look at the
name of the section: "Program dies when running under strace".  If the
intent was to get output from gdb it would have been something like
"Make gdb output strace info".

I'm not aware of any way to have gdb print strace info.

cgf

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

