This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PATCH: Set MAX_REGISTER_SIZE to 64
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GDB <gdb-patches at sourceware dot org>
- Date: Mon, 13 Sep 2010 10:09:07 -0700
- Subject: PATCH: Set MAX_REGISTER_SIZE to 64
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I am working on 512bit vector support in gdb. When I ran gdb with the
new gdbserver, I got
../../gdb/regcache.c:135: internal-error: init_regcache_descr: Assertion `MAX_REGISTER_SIZE >= descr->sizeof_register[i]' failed.
So the new gdbserver isn't compatible with the existing gdb. This patch
avoids crash with 512bit register. OK for trunk/7.2/7.1?
Thanks.
H.J.
---
2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
* defs.h (MAX_REGISTER_SIZE): Set to 64.
diff --git a/gdb/defs.h b/gdb/defs.h
index a10652a..9e4800c 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1037,7 +1037,7 @@ extern void *alloca ();
/* Maximum size of a register. Something small, but large enough for
all known ISAs. If it turns out to be too small, make it bigger. */
-enum { MAX_REGISTER_SIZE = 32 };
+enum { MAX_REGISTER_SIZE = 64 };
/* Static target-system-dependent parameters for GDB. */