From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 706 invoked by alias); 5 May 2016 21:09:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 130806 invoked by uid 89); 5 May 2016 21:09:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*MI:lan, Hx-languages-length:861 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 05 May 2016 21:09:41 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 34255627D5 for ; Thu, 5 May 2016 21:09:40 +0000 (UTC) Received: from pinnacle.lan (ovpn-113-39.phx2.redhat.com [10.3.113.39]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u45L9dRr023002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NO) for ; Thu, 5 May 2016 17:09:40 -0400 Date: Thu, 05 May 2016 21:09:00 -0000 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH 0/4] Thread handle to (GDB internal) thread object mapping Message-ID: <20160505140938.26a084ed@pinnacle.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00077.txt.bz2 This patch set introduces an interface/mechanism for mapping thread handles to the thread_info structs which GDB uses to keep track of threads in the inferiors which it's debugging. I need this in order to find the GDB thread which corresponds to a saved thread handle (of type pthread_t) within an implementation of a thread library built atop pthreads. Part 1 introduces a target method which maps a thread handle to the corresponding internal GDB thread object, i.e. something of type `struct thread_info *'. An implementation of this new method is provided for the Linux thread target. Additional work will be required, over time, for other thread targets. Part 2 adds a python interface for the mechanism introduced in part 1. Part 3 is a documentation patch. Part 4 adds a test case.