From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21887 invoked by alias); 22 Oct 2009 06:52:16 -0000 Received: (qmail 21878 invoked by uid 22791); 22 Oct 2009 06:52:15 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.redpinesignals.com (HELO mail.redpinesignals.com) (203.196.161.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Oct 2009 06:52:12 +0000 Received: from [192.168.40.83] ([192.168.40.83]) (authenticated user nagaraju.m@redpinesignals.com) by mail.redpinesignals.com; Thu, 22 Oct 2009 12:11:33 +0530 Message-ID: <4AE00144.5020201@redpinesignals.com> Date: Thu, 22 Oct 2009 15:23:00 -0000 From: "nagaraju.m" User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Michael Snyder CC: "gdb@sourceware.org" Subject: Re: processor threads References: <4ADD5C6F.10002@redpinesignals.com> <4ADDF828.6060504@vmware.com> <4ADE9F3E.1040200@redpinesignals.com> <4ADF1871.5080004@vmware.com> In-Reply-To: <4ADF1871.5080004@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2009-10/txt/msg00339.txt.bz2 Michael, Thanks for replying. Can you please forward me any links on how to implement threads support to a specific target. Thanks, Nagraju Michael Snyder wrote: > nagaraju.m wrote: >> Hi Michael, >> >> I mean to say that we are having 4 hardware threads. Our company >> has its own processor on which we will be working. The >> processor currently we are working has 4 threads in it. >> >> Each thread has it own set of registers (ex: program counter). >> >> Currently the GDB which we are using is supporting only single >> thread (ex: thread 0). >> Now we trying to use GDB for remaining threads. >> >> My Question is does GDB handles hardware threads?? > > Good, thank you for the clarification. > > The answer is "yes and no". GDB supports threads, per se, but > it doesn't have any special knowledge about hardware threads > as opposed to any other kind of threads. > > What you can do (and what others have done successfully before), > is just teach your remote server/stub/agent to tell gdb > "I have four threads, and here are their register sets". > > Gdb will then just think of them as ordinary threads. > Should be enough for you to get the job done, with maybe > a few extra tweaks that can be snuck in as off-band > monitor commands. > > Good luck, > Michael > > >