bombela/backward-cpp

Macos with libunwind do not work.

NEWPLAN opened this issue · 2 comments

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

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).