[gem5-users] Re: How to debug a program in GEM5 FS mode.

2021-04-22 Thread Boris Shingarov via gem5-users
sted to hear whether it will help in your scenario. Boris -"Gabe Black via gem5-users" wrote: - To: "Liyichao" From: "Gabe Black via gem5-users" Date: 04/21/2021 02:27AM Cc: "gem5 users mailing list" , "Gabe Black"

[gem5-users] Re: How to debug a program in GEM5 FS mode.

2021-04-21 Thread Boris Shingarov via gem5-users
ot; wrote: - To: "Liyichao" From: "Gabe Black via gem5-users" Date: 04/21/2021 02:27AM Cc: "gem5 users mailing list" , "Gabe Black" Subject: [gem5-users] Re: How to debug a program in GEM5 FS mode. Yeah, I don't think gdb in SE mode handles page faults we

[gem5-users] Re: How to debug a program in GEM5 FS mode.

2021-04-21 Thread Gabe Black via gem5-users
Yeah, I don't think gdb in SE mode handles page faults well, but there was actually a change proposed very recently which should help improve that. You can probably cherry-pick that change locally if you want to try it out. https://gem5-review.googlesource.com/c/public/gem5/+/44685 Gabe On Tue,

[gem5-users] Re: How to debug a program in GEM5 FS mode.

2021-04-21 Thread Liyichao via gem5-users
Thanks Gabe. I think run gdb inside gem5 is of course a better method but slow speed. In se mode,I also have tried it,but my program in se mode has a page fault panic before segment fault.I think se mode cannot process page fault. 李翼超 charlie

[gem5-users] Re: How to debug a program in GEM5 FS mode.

2021-04-21 Thread Gabe Black via gem5-users
Hello, Liyichao. While gdb debugging in gem5 is a great tool, it's a bit limited as far as the sort of debugging you're talking about. It can see the CPU state when you're in user space programs, but it doesn't understand that different user space programs are different things, or know how to look