From owner-cvs-all@FreeBSD.ORG Sun Mar 28 10:01:16 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A12BA16A4CE; Sun, 28 Mar 2004 10:01:16 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B0FC43D1D; Sun, 28 Mar 2004 10:01:16 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2SI1GGe064283; Sun, 28 Mar 2004 10:01:16 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2SI1Gbm064282; Sun, 28 Mar 2004 10:01:16 -0800 (PST) (envelope-from marcel) Message-Id: <200403281801.i2SI1Gbm064282@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 28 Mar 2004 10:01:16 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/tools README src/tools/tools/gdb_regofs Makefile ia64.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 18:01:16 -0000 marcel 2004/03/28 10:01:16 PST FreeBSD src repository Modified files: tools/tools README Added files: tools/tools/gdb_regofs Makefile ia64.c Log: Add a simple tool that prints out a register offset table to map from the gdb(1) register number to offsets within struct reg and struct fpreg. The tool is useful only on selected platforms. On ia64 the registers are all over the place to simplify handling of them in various situations, but which makes creating or maintaining such an offset table error prone to do by hand. Since remote kernel debugging operates on the same register numbers, it would be a natural choice to use an identical offset table in the kernel. However, since the kernel does not operate on struct reg nor struct fpreg in the remote gdb(1) case, such would not make sense. Whether we want to use this tool to create offsets for use in the kernel or duplicate the knowledge of which register number maps to what register is something that will become clear soon. Note: in order to build cross debuggers, one cannot use target headers and/or target definitions. That's why offsets need to be hardcoded in the first place. Unpleasant, but necessary. Revision Changes Path 1.31 +4 -0 src/tools/tools/README 1.1 +5 -0 src/tools/tools/gdb_regofs/Makefile (new) 1.1 +213 -0 src/tools/tools/gdb_regofs/ia64.c (new)