In gem5, can I step through my code? Like gdb instead of using DPRINTF to print out certain statements in some places?
1、Now,I found I can debug the gem5 through the command like gdb --args gem5.debug --debug-break = 1000
. but I still cann't look the code in the real time. When I use the option of -tui
,the error occured as "Cannot enable the TUI when output is not a terminal". but when I use the gdb to debug my Hello_world program like gdb -tui hello_world
,The error didn't appear. and I can look the code in the real time.
2、moreover,I cann't set the breakpoint in my hello_world program when debug the gem5. when I use the command like b src/cpu/o3/cpu.cc:567
,it works. but if I set the breakpoint in my own hello_world program,the error occurred as "No source file named cleanupspec/hello_world".