From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32044 invoked by alias); 16 Jun 2008 00:10:26 -0000 Received: (qmail 32034 invoked by uid 22791); 16 Jun 2008 00:10:26 -0000 X-Spam-Check-By: sourceware.org Received: from gatekeeper.tait.co.nz (HELO gatekeeper.tait.co.nz) (202.37.96.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Jun 2008 00:09:58 +0000 Received: from gatekeeper.tait.co.nz (localhost.localdomain [127.0.0.1]) by localhost.tait.co.nz (Postfix) with ESMTP id 0A09B46754 for ; Mon, 16 Jun 2008 12:09:55 +1200 (NZST) Received: from sunstrike.tait.co.nz (sunstrike [172.25.40.92])by gatekeeper.tait.co.nz (Postfix) with ESMTP id ECEB246753for ; Mon, 16 Jun 2008 12:09:54 +1200 (NZST) Received: from conversion-daemon.sunstrike.tait.co.nz by sunstrike.tait.co.nz(Sun Java System Messaging Server 6.1 (built Apr 28 2004))id <0K2J004011D72100@sunstrike.tait.co.nz>(original mail from john.carter@tait.co.nz) for gdb@sourceware.org; Mon,16 Jun 2008 12:09:54 +1200 (NZST) Received: from parore.tait.co.nz ([172.25.140.12])by sunstrike.tait.co.nz (Sun Java System Messaging Server 6.1 (built Apr 282004)) with ESMTP id <0K2J0031A4GIUC10@sunstrike.tait.co.nz> forgdb@sourceware.org; Mon, 16 Jun 2008 12:09:54 +1200 (NZST) Received: from localhost ([127.0.0.1]) by parore.tait.co.nz with esmtp(Exim 4.69) (envelope-from )id 1K82IE-0004VB-2F for gdb@sourceware.org; Mon, 16 Jun 2008 12:09:54 +1200 Date: Mon, 16 Jun 2008 00:10:00 -0000 From: John Carter Subject: What does gdb stub need for thread aware debugging on embedded system? To: gdb@sourceware.org Message-id: MIME-version: 1.0 X-Mailer: Pidgeon Post Content-type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT X-Apparently-From: mars X-Contents: May contain traces of nuts. User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-imss-version: 2.051 X-imss-result: Passed X-imss-approveListMatch: *@tait.co.nz 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: 2008-06/txt/msg00153.txt.bz2 I'm looking to get thread aware debugging running on our "sparc-alike" Leon II processor. Unlike the usual sparc stub, I cannot get thread information from Solaris as we're not running solaris on this device. If I understand things correctly, getting gdb working should just be a matter of tying gdb/sparc-stub.c to our serial ports by defining extern void putDebugChar(); /* write a single character */ extern int getDebugChar(); /* read and return a single char */ Grepping through that code the word "thread" doesn't occur. What I'm missing is how does gdb get information about threads from the devices OS to gdb running on the desktop. Any pointers to the right bit of documentation / code would be most welcome. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand