From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8214 invoked by alias); 6 Jul 2011 23:44:04 -0000 Received: (qmail 8204 invoked by uid 22791); 6 Jul 2011 23:44:04 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f54.google.com (HELO mail-fx0-f54.google.com) (209.85.161.54) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jul 2011 23:43:48 +0000 Received: by fxe4 with SMTP id 4so580262fxe.13 for ; Wed, 06 Jul 2011 16:43:46 -0700 (PDT) Received: by 10.223.68.193 with SMTP id w1mr3348fai.85.1309995825101; Wed, 06 Jul 2011 16:43:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.9.9 with HTTP; Wed, 6 Jul 2011 16:43:25 -0700 (PDT) In-Reply-To: References: <4E0F230A.70601@amk-drives.bg> From: =?UTF-8?B?UGV0ciBIbHV6w61u?= Date: Wed, 06 Jul 2011 23:44:00 -0000 Message-ID: Subject: Re: gdb-gdbserver, non-stop, async - thread identifier more than only a thread id? To: Tom Tromey Cc: "D. Lehne" , gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 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-07/txt/msg00034.txt.bz2 On 6 July 2011 22:57, Tom Tromey wrote: >>>>>> "D" == D Lehne writes: > > D> There are 3 threads, but it isn't clear which thread represents which > D> functionality (fucntion call) . When a thread is created, isn't it > D> possible to refer the first function call on stack as an reference > D> name of a thread? > > I guess it would be possible, but I don't know if it is desirable. What about using the first function call on stack only if OS (or remote target) does not report the name? And of course allow overriding from command line. I guess it would be useful to skip the first several functions which are always there. (E.g. OS thread entry, C runtime initialization/deinitialization, a fancy framework init/deinit routine, and finally the function the user wanted.) Daniel: The command is "thread name", see [1] [1] http://sourceware.org/gdb/current/onlinedocs/gdb/Threads.html -- Petr Hluzin