From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22111 invoked by alias); 9 Apr 2010 08:12:50 -0000 Received: (qmail 22077 invoked by uid 22791); 9 Apr 2010 08:12:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.alyotech.fr (HELO mail.alyotech.fr) (86.66.40.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Apr 2010 08:12:44 +0000 Received: from AVE02.alyotech.fr (192.168.177.125) by mail.alyotech.fr (192.168.177.80) with Microsoft SMTP Server (TLS) id 8.2.247.2; Fri, 9 Apr 2010 10:06:39 +0200 Received: from ARE01.alyotech.fr (192.168.35.102) by AVE02.alyotech.fr (192.168.7.2) with Microsoft SMTP Server (TLS) id 8.2.247.2; Fri, 9 Apr 2010 10:12:39 +0200 Received: from ARE01.alyotech.fr ([192.168.35.102]) by ARE01.alyotech.fr ([192.168.35.102]) with mapi; Fri, 9 Apr 2010 10:12:39 +0200 From: PILLON Julien To: "gdb@sourceware.org" Date: Fri, 09 Apr 2010 08:12:00 -0000 Subject: User level threads debugging with GDB Message-ID: <06A7AD4E92172446ADDEB44F8A5D5C101CA8246BEE@ARE01.alyotech.fr> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00029.txt.bz2 Hi, I would like to know the right way to do some user-level threads debugging = with GDB and I have a few questions :=20=20 First, the main work will be within the libthread_db (especially in the td_= ta_new function I guess) but what else must be modified and what can be lef= t as is ? Next, how should I implement the stack printing ?=20 Is the attach mode altered with this kind of modifications ? And if it is, = where are the sources to modify ? regards Julien