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

Macos with libunwind do not work. #326

Open
NEWPLAN opened this issue Jan 11, 2024 · 2 comments
Open

Macos with libunwind do not work. #326

NEWPLAN opened this issue Jan 11, 2024 · 2 comments

Comments

@NEWPLAN
Copy link

NEWPLAN commented Jan 11, 2024

the code in https://github.com/bombela/backward-cpp/blob/master/backward.hpp#L1023 raise syntax error for missing a ';'.

@bombela
Copy link
Owner

bombela commented Jan 11, 2024 via email

@NEWPLAN
Copy link
Author

NEWPLAN commented Jan 12, 2024

In addition to the missing semi-colon, it might not properly copy the registers from the context as the comment indicates. Are you on macos x86_32? Because that is what this section of the code is for. If you are willing, you could try to port the x86_64 code to the x86_32 version and submit a pull request <3

On Thu, Jan 11, 2024, 10:10 NEWPLAN @.> wrote: the code in https://github.com/bombela/backward-cpp/blob/master/backward.hpp#L1023 raise syntax error for missing a ';'. — Reply to this email directly, view it on GitHub <#326>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABUZDARSIHLI7RI56PS263YN6UB3AVCNFSM6AAAAABBWEJJKCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TMMJQHA2DQMA . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thanks for your reply.
I'm using mac with M2 CPU, and my environment is:

'''

gcc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
'''

and I have found a macro named " __arm64__ " in my compiler toolchain (the command is 'echo | gcc -dM -E - | grep -i arm').
I have found the code block controlled by the macro " __arm__ " in https://github.com/bombela/backward-cpp/blob/master/backward.hpp#L957 , and it is for the 32bit arm architecture, may we should have a patch for 64bit arm achitecture (I would like to have a try, and submit the patch for further testing).

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

No branches or pull requests

2 participants