From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8181 invoked by alias); 6 Jul 2012 06:31:18 -0000 Received: (qmail 8170 invoked by uid 22791); 6 Jul 2012 06:31:17 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Jul 2012 06:31:02 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q666Uu19005065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jul 2012 02:30:56 -0400 Received: from host2.jankratochvil.net (ovpn-116-32.ams2.redhat.com [10.36.116.32]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q666Uqbx001104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 6 Jul 2012 02:30:55 -0400 Date: Fri, 06 Jul 2012 06:31:00 -0000 From: Jan Kratochvil To: orglinux@sina.com Cc: gdb Subject: Re: please ask a question abput breakpoint Message-ID: <20120706063051.GA20479@host2.jankratochvil.net> References: <20120706032345.CD1DB978618@webmail.sinamail.sina.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120706032345.CD1DB978618@webmail.sinamail.sina.com.cn> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-07/txt/msg00003.txt.bz2 On Fri, 06 Jul 2012 05:23:45 +0200, orglinux@sina.com wrote: > Hi, GDB developpers: In mulit-threading ,when a thread encounter > a breadpoint, how does the gdbserver find out the thread encounting the > breakpoint? Because many threads may encounter the same breakpoint. In the case of Linux kernel it reports SIGTRAP for the specific task (=thread). waitpid returns PID (TID) of that thread. Regards, Jan