Since CORE_ADDR is unsigned, this value can never be negative.
gdb/ChangeLog:
* score-tdep.c (score7_malloc_and_get_memblock): Remove check for
negative size.
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
+ negative size.
+
2016-07-06 John Baldwin <jhb@FreeBSD.org>
* fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
int ret;
gdb_byte *memblock = NULL;
- if (size < 0)
- {
- error (_("Error: malloc size < 0 in file:%s, line:%d!"),
- __FILE__, __LINE__);
- return NULL;
- }
- else if (size == 0)
+ if (size == 0)
return NULL;
memblock = (gdb_byte *) xmalloc (size);