OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [huge.c] - Diff between revs 827 and 840

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 827 Rev 840
/*
/*
 * Test GDB's ability to read a very large data object from target memory.
 * Test GDB's ability to read a very large data object from target memory.
 */
 */
 
 
#include <string.h>
#include <string.h>
 
 
/* A value that will produce a target data object large enough to
/* A value that will produce a target data object large enough to
   crash GDB.  0x200000 is big enough on GNU/Linux, other systems may
   crash GDB.  0x200000 is big enough on GNU/Linux, other systems may
   need a larger number.  */
   need a larger number.  */
#ifndef CRASH_GDB
#ifndef CRASH_GDB
#define CRASH_GDB 0x200000
#define CRASH_GDB 0x200000
#endif
#endif
static int a[CRASH_GDB], b[CRASH_GDB];
static int a[CRASH_GDB], b[CRASH_GDB];
 
 
main()
main()
{
{
  memcpy (a, b, sizeof (a));
  memcpy (a, b, sizeof (a));
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.