From owner-cvs-src@FreeBSD.ORG Thu May 1 20:36:48 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99ECA1065670; Thu, 1 May 2008 20:36:48 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8593B8FC1D; Thu, 1 May 2008 20:36:48 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m41Kamoj047725; Thu, 1 May 2008 20:36:48 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m41Kam6r047724; Thu, 1 May 2008 20:36:48 GMT (envelope-from jhb) Message-Id: <200805012036.m41Kam6r047724@repoman.freebsd.org> From: John Baldwin Date: Thu, 1 May 2008 20:36:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/gnu/usr.bin/gdb/kgdb kthr.c trgt.c trgt_amd64.c trgt_arm.c trgt_i386.c trgt_ia64.c trgt_powerpc.c trgt_sparc64.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2008 20:36:48 -0000 jhb 2008-05-01 20:36:48 UTC FreeBSD src repository Modified files: gnu/usr.bin/gdb/kgdb kthr.c trgt.c trgt_amd64.c trgt_arm.c trgt_i386.c trgt_ia64.c trgt_powerpc.c trgt_sparc64.c Log: - Change how the vmcore target maps FreeBSD thread IDs to GDB ptids. We now only use the TID and ignore the PID and use pid_to_ptid() to build a ptid treating the TID as a PID. The benefit of this is that the vmcore target now uses the same scheme as GDB's remote targets. As a result, the 'tid' command now works for remote targets (however, it only accepts TIDs and not addresses of 'struct thread' objects). - Use gdb_thread_select() to do the actual thread switch for the 'tid' and 'proc' commands. This now gives the same UI feedback when switching threads as the GDB 'thread' command rather than providing no visual output at all. MFC after: 1 week Revision Changes Path 1.12 +12 -9 src/gnu/usr.bin/gdb/kgdb/kthr.c 1.12 +20 -30 src/gnu/usr.bin/gdb/kgdb/trgt.c 1.10 +1 -1 src/gnu/usr.bin/gdb/kgdb/trgt_amd64.c 1.5 +1 -1 src/gnu/usr.bin/gdb/kgdb/trgt_arm.c 1.11 +2 -2 src/gnu/usr.bin/gdb/kgdb/trgt_i386.c 1.6 +1 -1 src/gnu/usr.bin/gdb/kgdb/trgt_ia64.c 1.4 +1 -1 src/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c 1.8 +1 -1 src/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c