URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/*
|
/*
|
* Test that GDB cleans up properly after errors that result when a
|
* Test that GDB cleans up properly after errors that result when a
|
* breakpoint is reset.
|
* breakpoint is reset.
|
*/
|
*/
|
|
|
/* VARIABLE is a macro defined on the compiler command line. */
|
/* VARIABLE is a macro defined on the compiler command line. */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
int VARIABLE = 42;
|
int VARIABLE = 42;
|
|
|
void stop_here ()
|
void stop_here ()
|
{
|
{
|
VARIABLE *= 2;
|
VARIABLE *= 2;
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
stop_here ();
|
stop_here ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.