From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3755 invoked by alias); 6 Feb 2015 06:15:21 -0000 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 Received: (qmail 3736 invoked by uid 89); 6 Feb 2015 06:15:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f194.google.com Received: from mail-ig0-f194.google.com (HELO mail-ig0-f194.google.com) (209.85.213.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 06 Feb 2015 06:15:20 +0000 Received: by mail-ig0-f194.google.com with SMTP id a13so4453igq.1 for ; Thu, 05 Feb 2015 22:15:18 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.234.194 with SMTP id ug2mr631754igc.39.1423203317906; Thu, 05 Feb 2015 22:15:17 -0800 (PST) Received: by 10.36.6.144 with HTTP; Thu, 5 Feb 2015 22:15:17 -0800 (PST) In-Reply-To: References: Date: Fri, 06 Feb 2015 06:15:00 -0000 Message-ID: Subject: Re: How to get all threads of a definite process? From: fei ding To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00010.txt.bz2 BTW, I am talking about gdbserver, Thanks 2015-02-06 14:14 GMT+08:00 fei ding : > Hi, everyone: > > I want to get all threads of one definite process, and I've found some > data structure such as 'all_threads', which is not what I want, i > guess. I don't understand the relationship between process and thread, > from the gdb-source-code-level (pointers for example), and I don't > understand the meaning of 'ptid_t', does this mean 'process_thread_id' > ? and I've found this data's value is not the thread's PID that Linux > shell tell me, it just some number like 0 or 1. > > If you know something about this, please help me. Thanks. > > BR.