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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [gdb.base/] [huge.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/*
2
 * Test GDB's ability to read a very large data object from target memory.
3
 */
4
 
5
/* A value that will produce a target data object large enough to
6
   crash GDB.  0x200000 is big enough on GNU/Linux, other systems may
7
   need a larger number.  */
8
 
9
#define CRASH_GDB 0x200000
10
 
11
static int a[CRASH_GDB], b[CRASH_GDB];
12
 
13
main()
14
{
15
  memcpy (a, b, sizeof (a));
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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