delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/30/18:40:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: "Hans Horn" <hannes AT 2horns DOT com>
Subject: Re: attaching debugger to process
Date: Thu, 30 Dec 2004 15:39:38 -0800
Lines: 38
Message-ID: <cr23k3$mgd$1@sea.gmane.org>
References: <cqvhc5$naj$1 AT sea DOT gmane DOT org> <20041230005224 DOT GA28379 AT trixie DOT casa DOT cgf DOT cx>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: adsl-63-201-94-222.dsl.snfc21.pacbell.net
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-IsSubscribed: yes

Christopher Faylor wrote:
> On Wed, Dec 29, 2004 at 04:16:00PM -0800, Hans Horn wrote:
>> I'm trying to debug a running process by attaching the debugger to
>> it.
>>
>> From inside the debugger, when I issue a 'where' command, I end up in
>>
>> Switching to thread 3344.0x564]
>> #0  0x7c901231 in ntdll!DbgUiConnectToDbg () from
>> /cygdrive/c/WINDOWS/system32/ntdll.dll
>> #1  0x7c9507a8 in ntdll!KiIntSystemCall () from
>> /cygdrive/c/WINDOWS/system32/ntdll.dll
>> #2  0x00000005 in ?? ()
>> #3  0x00000004 in ?? ()
>> #4  0x00000001 in ?? ()
>> #5  0x0238ffd0 in ?? ()
>>
>> When I try to step out of this. insight freezes.
>>
>> Anybody else seen this?
>
> Seen what?  Seen that windows creates a new thread when you are
> attaching to a process.  Yes.

No - that the dbugger freezes when i try to do a step or a next!

> Look at thread 1.  It probably will be more informative.
>
> cgf

Alright, there are four threads.
the debugger wakes up in thread 4 (ntdll!DbgUiConnectToDbg).
The other three threads are all in ntdll!LdrAccessResource.

How do I get to urge the debugger to go to the place in MY application code?





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

- Raw text -


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