dwarf2_find_location_expression: Corrupted DWARF expression. when printing registers using gdb
h9nara opened this issue · comments
h9nara commented
I tried to follow the gdb run in the traps & system call lecture and when I tried to print some registers with gdb, it gave 'dwarf2_find_location_expression: Corrupted DWARF expression.'. I'm using a M1 Mac if that helps.
It seems to me that tweaking some options for the compiler might fix the problem but not sure where to change. Not familiar with makefile at all.
Rahul Thomas commented
Give this a try(#129). It solved it for me.
h9nara commented
Thanks, I gave it another try recently and the exact change in your PR did fix the problem for me.