delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/07/03:44:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Nicholas Sherlock <n DOT sherlock AT gmail DOT com>
Subject: Re: R: Segfault with call to pthread_mutexattr_init under GDB
Date: Wed, 07 Oct 2009 20:43:27 +1300
Lines: 29
Message-ID: <hahgqs$tul$1@ger.gmane.org>
References: <hahdsr$lvh$1 AT ger DOT gmane DOT org> <855431 DOT 45788 DOT qm AT web25508 DOT mail DOT ukl DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0
In-Reply-To: <855431.45788.qm@web25508.mail.ukl.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Marco Atzeri wrote:
>> Da: Nicholas Sherlock 
>> This GDB was configured as "i686-pc-mingw32"...
> 
> Have you tried the cygwin gbd ?
> 
> $ gcc-4 -o prova prova.c
> 
> $ gdb prova.exe
> GNU gdb 6.8.0.20080328-cvs (cygwin-special)
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i686-pc-cygwin"...
> (gdb) run
> Starting program: /tmp/prova/prova.exe
> 
> Program exited normally.

Whoops! I thought that I *was* using Cygwin's GDB, but it turns out that 
I forgot to reinstall it last time I refreshed my Cygwin installation. 
I've been using MinGW's GDB without ever realizing it.

I've now installed Cygwin's GDB, where it works perfectly.

Thanks!
Nicholas Sherlock


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