1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/cpu/native_backtrace/main.c

34 lines
702 B
C

/*
* Copyright (C) 2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Tests backtrace module.
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*
* @}
*/
#include <stdio.h>
#include "backtrace.h"
int main(void)
{
printf("BACKTRACE_SIZE: %d\n", backtrace_len());
printf("\n## backtrace_print: print addresses\n");
backtrace_print();
printf("\n## backtrace_print_symbols: print symbol information\n");
backtrace_print_symbols();
return 0;
}