2017-06-16 13:32:53 +02:00
|
|
|
/*
|
|
|
|
* 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
|
2020-06-04 14:37:41 +02:00
|
|
|
* @brief Tests backtrace module.
|
2017-06-16 13:32:53 +02:00
|
|
|
*
|
|
|
|
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-06-04 14:37:41 +02:00
|
|
|
#include "backtrace.h"
|
2017-06-16 13:32:53 +02:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2021-09-03 18:45:21 +02:00
|
|
|
printf("BACKTRACE_SIZE: %d\n", backtrace_len());
|
|
|
|
printf("\n## backtrace_print: print addresses\n");
|
2020-06-04 14:37:41 +02:00
|
|
|
backtrace_print();
|
2021-09-03 18:45:21 +02:00
|
|
|
printf("\n## backtrace_print_symbols: print symbol information\n");
|
|
|
|
backtrace_print_symbols();
|
2017-06-16 13:32:53 +02:00
|
|
|
return 0;
|
|
|
|
}
|