tinycc-devel
[
Top
][
All Lists
]
Advanced
[Date Prev][
Date Next
][Thread Prev][
Thread Next
][
Date Index
][
Thread Index
]
[Tinycc-devel] backtrace() on Linux
From
:
Yakov
Subject
:
[Tinycc-devel] backtrace() on Linux
Date
:
Fri, 9 Mar 2018 15:24:14 +0545
#include
<execinfo.h>
#include
<stdio.h>
void
show_bt
() {
int
n
;
void
*
buffer
[
111
];
char
**
strings
;
n
=
backtrace
(
buffer
,
111
);
strings
=
backtrace_symbols
(
buffer
,
n
);
while
(
strings
&&
n
)
printf
(
"%s\n"
,
strings
[
n
---
1
]);
}
void
c
()
{
show_bt
(); }
void
b
()
{
c
(); }
void
a
()
{
b
(); }
int
main
()
{
a
(); }
The above code does not work on Tiny. Although works on GCC/Clang for me.
$ tcc -version
tcc version 0.9.26 (x86-64 Linux)
I have tried to no avail:
"-bt 100", "-g", "-rdynamic"
, also tried to link with gcc and ld.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Tinycc-devel] backtrace() on Linux
,
Yakov
<=
Re: [Tinycc-devel] backtrace() on Linux
,
Yakov
,
2018/03/09
Re: [Tinycc-devel] backtrace() on Linux
,
Yakov
,
2018/03/09
Re: [Tinycc-devel] backtrace() on Linux
,
Yakov
,
2018/03/09
Re: [Tinycc-devel] backtrace() on Linux
,
Daniel Glöckner
,
2018/03/10
Next by Date:
Re: [Tinycc-devel] backtrace() on Linux
Next by thread:
Re: [Tinycc-devel] backtrace() on Linux
Index(es):
Date
Thread