[gem5-dev] Re: Debugging application inside gem5 (m5term)

2020-05-20 Thread GAURAV JAIN via gem5-dev
Hi Ciro, runn Thanks for the response. Yeah, even we couldn't make the gdbserver approach work. For the non-gdbserver approach you described, we tried it but we are still not able to hit the breakpoints on the app (by running gdb on the host system). I think I might have missed this earlier

[gem5-dev] Re: Debugging application inside gem5 (m5term)

2020-05-19 Thread Pouya Fotouhi via gem5-dev
Hi Gaurav, As Ciro mentioned, I think what you need is add-symbol-file (to keep the existing symbol). To make my life easier, I would still rely on lx-symbols to load symbols for kernel modules as they are loaded, and only use add-symbol-file for the binary you want to debug along with the driver

[gem5-dev] Re: Debugging application inside gem5 (m5term)

2020-05-19 Thread Ciro Santilli via gem5-dev
For the gdbserver approach, I haven't found a guest to host networking possibility in gem5 yet: https://stackoverflow.com/questions/48941494/how-to-do-port-forwarding-from-guest-to-host-and-vice-versa-in-gem5 but maybe I missed it. For a non-gdbserver approach, have you tried add-symbol-file as