public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Set MAX_REGISTER_SIZE to 64
@ 2010-09-13 17:58 H.J. Lu
  2010-09-30 19:14 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2010-09-13 17:58 UTC (permalink / raw)
  To: GDB

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-05 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-13 17:58 PATCH: Set MAX_REGISTER_SIZE to 64 H.J. Lu
2010-09-30 19:14 ` Joel Brobecker
2010-10-05 21:46   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).