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] - Rev 609

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

/*
 *  Simple debug test program.
 */
 
#include <stdio.h>
 
#include "serial_gdb.h"
 
void debug_test(void)
{
  unsigned i, sum;
 
  /* Initialize debugging support and insert breakpoint. */
 
  init_serial_gdb();
 
  breakpoint();
 
  sum = 1;
  for(i=1; i <= 100; i++) {
    sum += sum % i;
    printf("Current sum = %d\n", sum);
  }
}
 
 

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

powered by: WebSVN 2.1.0

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