aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-03-08 09:42:21 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-03-08 09:42:21 +0000
commit4ef0bef68cfc777e59156fce1563583c0ffb76d9 (patch)
treed3c25e7c280cd8d4fe2c79c610f1867b85eb3c40 /gdb/python
parente771e7c9fb79487d7b192769bc2d91fbe4118ba6 (diff)
downloadbinutils-4ef0bef68cfc777e59156fce1563583c0ffb76d9.zip
binutils-4ef0bef68cfc777e59156fce1563583c0ffb76d9.tar.gz
binutils-4ef0bef68cfc777e59156fce1563583c0ffb76d9.tar.bz2
Remove MAX_REGISTER_SIZE define
gdb/ * defs.h: Remove MAX_REGISTER_SIZE. * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE asserts. * python/py-unwind.c (pyuw_sniffer): Likewise.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-unwind.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c
index a7e3a93..906a004 100644
--- a/gdb/python/py-unwind.c
+++ b/gdb/python/py-unwind.c
@@ -583,7 +583,6 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame,
/* `value' validation was done before, just assert. */
gdb_assert (value != NULL);
gdb_assert (data_size == TYPE_LENGTH (value_type (value)));
- gdb_assert (data_size <= MAX_REGISTER_SIZE);
cached_frame->reg[i].data = (gdb_byte *) xmalloc (data_size);
memcpy (cached_frame->reg[i].data, value_contents (value), data_size);