OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [gdb/] [testsuite/] [gdb.base/] [huge.c] - Blame information for rev 223

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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