Changes between Version 13 and Version 14 of TBR/Review/Debugging/Start


Ignore:
Timestamp:
Aug 16, 2007, 10:48:06 PM (12 years ago)
Author:
Rsg
Comment:

/* Enabling */

Legend:

Unmodified
Added
Removed
Modified
  • TBR/Review/Debugging/Start

    v13 v14  
    389389as simple as adding -DSTACK_CHECK_ON to the gcc command line which
    390390compiles the file defining the configuration table.  In the RTEMS
    391 test suites and samples, this is always init.c.  Another way to enable it is to include the following prior to including confdefs.h:
     391test suites and samples, this is always init.c.  Another way to
     392enable it is to include the following prior to including confdefs.h:
     393
    392394{{{
    393395#define STACK_CHECKER_ON
    394396}}}
     397
     398Once you've enabled the stack checker when building your application, it the stack checker
     399runs automatically as part of a context switch.  Additionally, you can call
     400
     401{{{
     402boolean rtems_stack_checker_is_blown(void);
     403}}}
     404
     405at any time to check yourself; it returns FALSE if the stack appears okay,
     406or TRUE if the stack pointer is out of range or the pattern marker has
     407been corrupted.
    395408==  Background  ==
    396409