delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/15/15:28:56

X-Spam-Check-By: sourceware.org
Date: Thu, 15 Jun 2006 15:28:41 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: GDB Ctrl-C Interrupt Fails WORKAROUND
Message-ID: <20060615192841.GA17101@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <7C03ABC1-49A7-4B6E-8815-53755E03A7FC AT qualcomm DOT com>
Mime-Version: 1.0
In-Reply-To: <7C03ABC1-49A7-4B6E-8815-53755E03A7FC@qualcomm.com>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, Jun 15, 2006 at 12:17:09PM -0700, Kyle McKay wrote:
>On 15 Jun 2006 13:57:14 -0400, Christopher Faylor wrote:
>>On Cygwin, gdb is the debugger for programs produced by gcc.  You are
>>not going to be able to read many (any?) symbols for programs produced
>>by other compilers so there really isn't much of a reason to use gdb
>>to debug non-gcc-produced programs.
>
>Apparently you did not see my previous comments about this:

No.  I didn't.  Same observation applies, though.

>>On 15 Jun 2006 10:38:57 -0700, Kyle McKay wrote:
>>>Now if you have such a program compiled with the m$ compiler for  
>>>which you do not have the source and such a program is loading a  
>>>DLL plugin built with cygwin that you're trying to debug then CTRL- 
>>>C WILL NEVER WORK no matter how many console windows you get out.
>
>DLLs built with gcc cannot be interrupted with CTRL-C when they are  
>loaded by programs built with other compilers.
>
>>In any event, at least we're getting details now beyond the "CTRL-C
>>doesn't work with gdb".
>
>Or these comments about using a console window:
>
>>On 15 Jun 2006 10:38:57 -0700, Kyle McKay wrote:
>>>It is also a non-solution for ssh users and remote X users.

I mentioned ptys and ttys in my very first response.

>CTRL-C also appears to be used by the X windows ddd break button.   
>Doesn't work there either.

So, submit a ddd bug report.

>However, in all these cases the debugbreak (debugbreak.c) utility can  
>provide a usable, if awkward, workaround.

The keyword being "awkward".  There is nothing to stop an interested person
from modifying gdb to do the right thing.


>For example, build the loopdll.dll and runloop.exe from the following  
>sources using the gcc and m$ compilers as indicated:

Isn't the m'$' compiler you're using actually free?  If so, the dollar
sign appears to be misplaced.

In any event, we seem to be looping:

On Thu, Jun 15, 2006 at 01:57:14PM -0400, Christopher Faylor wrote:
>It is also possible that CTRL-C will not interrupt programs which are
>compiled for -mwin32.  I haven't tried that for a while.  That may
>be what you're seeing when you use the Microsoft Visual C compiler.

>/* BEGIN loopdll.c */
>/* Compile with cygwin gcc -o loopdll.dll -g -mno-cygwin -mthreads - mdll loopdll.c */
>/* Compile with m$ cl -o runloop.exe runloop.c */

You sure love that 'm$' don't you?

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/

- Raw text -


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