mit-pdos / xv6-riscv

Xv6 for RISC-V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dwarf2_find_location_expression: Corrupted DWARF expression. when printing registers using gdb

h9nara opened this issue · comments

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.

Give this a try(#129). It solved it for me.

Thanks, I gave it another try recently and the exact change in your PR did fix the problem for me.