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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [debug_c/] [debug_test.c] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  Simple debug test program.
3
 */
4
 
5
#include <stdio.h>
6
 
7
#include "serial_gdb.h"
8
 
9
void debug_test(void)
10
{
11
  unsigned i, sum;
12
 
13
  /* Initialize debugging support and insert breakpoint. */
14
 
15
  init_serial_gdb();
16
 
17
  breakpoint();
18
 
19
  sum = 1;
20
  for(i=1; i <= 100; i++) {
21
    sum += sum % i;
22
    printf("Current sum = %d\n", sum);
23
  }
24
}
25
 

powered by: WebSVN 2.1.0

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