source: trunk/user/idbg/idbg.c @ 442

Last change on this file since 442 was 442, checked in by alain, 4 years ago

Introduce idbg application.

File size: 877 bytes
Line 
1///////////////////////////////////////////////////////////////////////////////
2// File   :  idbg.c
3// Date   :  May 2018
4// Author :  Alain Greiner <alain.greiner@lip6.fr>
5///////////////////////////////////////////////////////////////////////////////
6// This single thread interactive debuger can be used to access and display
7// various kernel structures
8///////////////////////////////////////////////////////////////////////////////
9
10
11#include <stdlib.h>
12#include <stdio.h>
13#include <shared_syscalls.h>
14
15///////////
16void main()
17{
18    unsigned long long  cycle;
19
20    get_cycle( &cycle );
21    printf( "\n[IDBG] starts at cycle %d\n", (unsigned int)cycle ); 
22
23    while (1) 
24    {
25
26        ///////
27        idbg();
28        ///////
29    }
30
31    get_cycle( &cycle );
32    printf( "\n[IDBG] exit at cycle %d\n", (unsigned int)cycle ); 
33
34    exit( EXIT_SUCCESS );
35
36} // end main()
37
Note: See TracBrowser for help on using the repository browser.