From owner-freebsd-threads@FreeBSD.ORG Wed Jun 29 17:36:54 2011 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8FFF106566C for ; Wed, 29 Jun 2011 17:36:54 +0000 (UTC) (envelope-from schumjs@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A3FD58FC0A for ; Wed, 29 Jun 2011 17:36:54 +0000 (UTC) Received: by iwr19 with SMTP id 19so1719731iwr.13 for ; Wed, 29 Jun 2011 10:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=foMy63HD8GYxt5kZCNAEtjbEtp6HZ9DyMFKs0AtvdnA=; b=hyxpd0jI+yqjcXBMoG+615NCrit772EAPziEUIFYfOYt6EtZKFeEGLlD/hLCDiVx+h yqaS20HnlQmte0nReHd/buBb8sqzPNo/4vE/6F/HEwmwvZyZoeIOeSY0VQ2+6H5WIhOI KJXdjNxeKb0v49jE595BCLAcpfz3PBLM5FS9o= MIME-Version: 1.0 Received: by 10.231.82.193 with SMTP id c1mr848940ibl.177.1309369013922; Wed, 29 Jun 2011 10:36:53 -0700 (PDT) Received: by 10.231.149.13 with HTTP; Wed, 29 Jun 2011 10:36:53 -0700 (PDT) Date: Wed, 29 Jun 2011 12:36:53 -0500 Message-ID: From: John Schumacher To: freebsd-threads@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Using fbsd-threads.c versus thread-db.c (gdbserver) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2011 17:36:54 -0000 Question: Does anyone understand the differences between freebsd-threads.c and thread-db.c in FreeBSD? Linux's gdbserver makes calls to thread-db.c and thread-db.c sits in the gdbserver folder in the 8.1 FreeBSD distro. However, I notice that fbsd-threads.c (which sits in FreeBSD\8.1\builds\8.1\kernel\source\gnu\usr.bin\gdb\libgdb) has similar functionality. Is the thread-db.c sitting in the gdbserver a relic from when it was ported over, and doesn't work with FreeBSD? Should one use the fbsd-threads.c to query the kernel for new and existing threads? Thanks -John -- John Schumacher University of Minnesota (TC) Electrical Engineering