From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1335 invoked by alias); 15 May 2011 14:16:48 -0000 Received: (qmail 1327 invoked by uid 22791); 15 May 2011 14:16:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mailout-de.gmx.net) (213.165.64.22) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 15 May 2011 14:16:36 +0000 Received: (qmail invoked by alias); 15 May 2011 14:16:34 -0000 Received: from kref-5d833bf0.pool.mediaWays.net (EHLO [93.131.59.240]) [93.131.59.240] by mail.gmx.net (mp012) with SMTP; 15 May 2011 16:16:34 +0200 Message-ID: <4DCFE0EC.6000308@gmx.de> Date: Sun, 15 May 2011 14:16:00 -0000 From: Klaus Rudolph User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Non-intrusive remote GDB References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2011-05/txt/msg00068.txt.bz2 Shrikanth Kamath schrieb: > My question is it possible / feasible to attempt the remote GDB attach > only to single micro kernel thread in the PPC plane > and not halt it totally? Say the other threads proceed as normal. > This is a question of process structure and the underlaying os. Threads are typically "assigned" to one task and gdb attaches to the whole task, which is "normally" sense full. Maybe a solution could be that you use multiple tasks not threads. Under linux this is realized simply in the clone command where you can give some flags which decide over the process control. I have no idea how this is solved under your micro kernel. An other way is to look inside your gdbserver source where maybe a thread/task list is kept. Maybe your gdbserver stops multiple threads from one task out of the list. Maybe you can change the sources at this point. It is not very complicated to do so. But without knowing your os, your system calls to the os and all the rest it is hard to help regards Klaus