Open zhanjf opened 4 years ago
I tried that but disappointingly I found that if you set breakpoints in cmod code, the program can only stop before the vp started. It seems that after the vp started, GDB can not monitor the program.
add compile flag '-g' .this flag enables debug capabilities on user C code and then you can set the breakpoints after attaching executable to GDB.
Does anyone know how to debug cmod in HW simulation? Thanks!