This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.0: gregset_t on Linux systems -- a proposal
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: gdb 5.0: gregset_t on Linux systems -- a proposal
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Mon, 24 Jul 2000 14:07:18 +0200 (MET DST)
- cc: gdb-patches at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
- Reply-To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
Hi,
Here is an updated patch which makes use of gdb_*regset_t types. Now
backends can supply whatever types they need.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
diff -u --recursive --new-file gdb-5.0.macro/gdb/core-regset.c gdb-5.0/gdb/core-regset.c
--- gdb-5.0.macro/gdb/core-regset.c Tue Oct 5 23:08:06 1999
+++ gdb-5.0/gdb/core-regset.c Sun Jul 23 10:41:38 2000
@@ -48,6 +48,18 @@
#include "command.h"
#include "gdbcore.h"
+#ifdef GDB_GREGSET_TYPE
+ typedef GDB_GREGSET_TYPE gdb_gregset_t;
+#else
+ typedef gregset_t gdb_gregset_t;
+#endif
+
+#ifdef GDB_FPREGSET_TYPE
+ typedef GDB_FPREGSET_TYPE gdb_fpregset_t;
+#else
+ typedef fpregset_t gdb_fpregset_t;
+#endif
+
static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
void _initialize_core_regset PARAMS ((void));
@@ -85,8 +97,8 @@
CORE_ADDR reg_addr; /* Unused in this version */
{
#if defined (HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T)
- gregset_t gregset;
- fpregset_t fpregset;
+ gdb_gregset_t gregset;
+ gdb_fpregset_t fpregset;
if (which == 0)
{