[gem5-users] Question about gem5 startup code breakpoint debugging
Hello, everyone! I am trying out computer architecture with gem5 and am interested in gem5. I'm looking forward to understanding the whole gem5 runtime startup process, i.e. from "src/sim/main.cc" to "src/python/m5/main.py", then to gem5 startup, and then to simulation of user scripts. I tried to trace this process through breakpoints, but when debugging through gdb, I can't trace breakpoints to "src/python/m5/main.py". Is there any way to trace this process, is it only possible to analyze this process by reading the source code? I don't think so, I guess I haven't found a way yet. Also I would like to know if there is any way to mix debugging C++/Python code in the gem5 project, and how the gem5 developers debug this code that creates the gem5 runtime? Looking forward to your answers, thanks!___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: Version of gem5
I tried it in my environment and got the same error as you, which makes me wonder maybe it's a bug. but you can still check the version of gem5 by running the command build/X86/gem5.opt -v. More options for command line arguments can be found under src/python/m5/main.py, you can take a look at that file. Best wishes! Yibo Zhang School of Computer Science and Technology,USTC -原始邮件- 发件人:"Beser, Nicholas D. via gem5-users" 发送时间:2024-03-17 23:58:44 (星期日) 收件人: "The gem5 Users mailing list" 抄送: "Beser, Nicholas D." 主题: [gem5-users] Version of gem5 I wanted to confirm the version number of the gem5 that I was running, so I thought I could just try: Build/X86/gem5.opt -B Or Build/X86/gem5.opt –version Neither command sequence worked. –version produced the error message no such option, and -B produced AttributeError: module ‘m5-defines’ has not attribute ‘gem5Version’ Is there an easy way to confirm the version number? Nick ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org