Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM and -funwind-tables gcc option #48

Open
kiranpradeep opened this issue Nov 30, 2016 · 2 comments
Open

ARM and -funwind-tables gcc option #48

kiranpradeep opened this issue Nov 30, 2016 · 2 comments

Comments

@kiranpradeep
Copy link

We needed -funwind-tables option on ARM processors to get backtrace. Could that be added to CMakeLists.txt conditionally for ARM ?

@bombela
Copy link
Owner

bombela commented Nov 30, 2016 via email

@HarrisDePerceptron
Copy link

HarrisDePerceptron commented Oct 30, 2019

Hi so i am using nvidia-jetson nano arm64 i have tried a lot of things for showing a complete stacktrace but all ended up in vain:

Running sample bracktrace_test on x86_64:

$ g++ --version
g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname --operating-system  --kernel-name --kernel-release --hardware-platform --processor
Linux 4.15.0-65-generic x86_64 x86_64 GNU/Linux

$ g++ -g -rdynamic backward.hpp backtrace_test.cpp -o backtrace_test -ldw
$ ./backtrace_test

x86_64 stacktrace 2

Running same sample bracktrace_test on nano arm64:

$ g++ --version
g++ (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname --operating-system  --kernel-name --kernel-release --hardware-platform --processor
Linux 4.9.140-tegra aarch64 aarch64 GNU/Linux

$  g++ -g -rdynamic -funwind-tables -fasynchronous-unwind-tables backward.hpp backtrace_test.cpp  -o backtrace_test -ldw

$ ./backtrace_test

aarch64 stacktrace

on Stackoverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants