delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/12/06:16:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 12 Jul 2011 06:16:14 -0400
Message-ID: <CADqjQ-JYHL3ZbYw2umByGJBr9rF87hX-o2smZM-rxsegD4cNnQ@mail.gmail.com>
Subject: Pthreads and GDB?
From: Jan Chludzinski <jan DOT chludzinski AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I went to GNU.org to read about GDB and threads since I'm having
trouble working with ptheads under GDB on Cygwin.  I notice this on
the GNU.org web site:

"Warning: These facilities are not yet available on every GDB
configuration where the operating system supports threads. If your GDB
does not support threads, these commands have no effect. For example,
a system without thread support shows no output from `info threads',
and always rejects the thread command, like this:"

What the level of support for threads with GDB under Cygwin?

Switching between threads causes seg-faults.  Also, I thought that
while you're stepping through one thread, the other threads weren't
running? Shouldn't I be able to set a breakpoint in a thread before
pthread_create() is invoked?  Doesn't appear to be the case?

---Jan

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