From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14782 invoked by alias); 9 Aug 2008 08:34:56 -0000 Received: (qmail 14774 invoked by uid 22791); 9 Aug 2008 08:34:55 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 09 Aug 2008 08:34:21 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id m798WwPG001004; Sat, 9 Aug 2008 10:32:58 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id m798Wvbc001860; Sat, 9 Aug 2008 10:32:57 +0200 (CEST) Date: Sat, 09 Aug 2008 08:34:00 -0000 Message-Id: <200808090832.m798Wvbc001860@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: pedro@codesourcery.com CC: gdb-patches@sourceware.org In-reply-to: <200808080420.05897.pedro@codesourcery.com> (message from Pedro Alves on Fri, 8 Aug 2008 04:20:04 +0100) Subject: Re: bsd-kvm target, always a thread References: <200808080420.05897.pedro@codesourcery.com> 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 X-SW-Source: 2008-08/txt/msg00230.txt.bz2 > From: Pedro Alves > Date: Fri, 8 Aug 2008 04:20:04 +0100 > > Hi, > > This patches makes the bsd-kvm target register a main thread. > > OK? Hmm, it is unfortunate that a process ID of 0 is "verboten", since that's what you are really looking at with "target kvm". And it should be possible for me to actually make all the running processes visible as kernel "threads". I guess your diff is right, although I'd prefer a less arbitrary ptid to be used. Would something like ptid_build(0, 1, 0) work? > 2008-08-08 Pedro Alves > > * bsd-kvm.c: Include "gdbthread.h". > (bsd_kvm_ptid): New. > (bsd_kvm_open): Add a main thread. > (bsd_kvm_close): Delete it. > (bsd_kvm_thread_alive): New. > (bsd_kvm_pid_to_str): New. > (bsd_kvm_add_target): Register bsd_kvm_thread_alive and > bsd_kvm_pid_to_str.