Can't use gdb
Closed this issue · 1 comments
dakmcinnis commented
Environment:
Device: MacBook Pro (Mid 2015)
OS: macOS Big Sur Version 11.5.2
Processor: 2.2 GHz Quad-Core Intel Core i7
Memory: 16 GB 1600 MHz DDR3
Graphics: Intel Iris PRo 1536 MB
Motivation:
I got a segmentation fault when runnning cd build-release && ./rays ../data/rubber-ducky.obj
. I want to use gdb to debug.
Current Behaviour:
Here are the attempts I made to debug, which all resulted in errors.
- In release mode
- In debug mode
- In debug mode with sudo
Questions:
Am I doing something wrong in terms of setup? With no. 3 mentioning that "this version of macOS has System Integrity Protection", will I be able to run this?
abhimadan commented
If you're on a mac, use lldb instead. It has the same features as gdb but without these annoying code signing issues.