This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Set MAX_REGISTER_SIZE to 64


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. */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]