gem5-users@gem5.org

The gem5 Users mailing list

View all threads

gem5 riscv remote gdb support

W
wanghw364
Fri, Jun 16, 2023 2:17 AM

Hi,
Does gem5 riscv support remote gdb to debug the target riscv elf?

I tried in this way but riscv gdb can't connect gem5 and showed connection time out and gem5 keep running the elf to the end:

  1. ./build/RISCV/gem5.debug --listener-mode=on --allow-remote-connections --remote-gdb-port=7000 ./configs/example/fs.py --kernel=riscv.elf
  2. riscv64-unknown-elf-gdb riscv.elf
  3. target remote localhost:7000

Is there anything I did wrong or I haven't done?

Thanks.

Hi, Does gem5 riscv support remote gdb to debug the target riscv elf? I tried in this way but riscv gdb can't connect gem5 and showed connection time out and gem5 keep running the elf to the end: 1. ./build/RISCV/gem5.debug --listener-mode=on --allow-remote-connections --remote-gdb-port=7000 ./configs/example/fs.py --kernel=riscv.elf 2. riscv64-unknown-elf-gdb riscv.elf 3. target remote localhost:7000 Is there anything I did wrong or I haven't done? Thanks.
BS
Boris Shingarov
Fri, Jun 16, 2023 6:32 AM

gem5.debug fs.py --kernel=riscv.elf --wait-gdb

On 6/15/23 22:17, wanghw364 via gem5-users wrote:

Hi,
Does gem5 riscv support remote gdb to debug the target riscv elf?

I tried in this way but riscv gdb can't connect gem5 and showed
connection time out and gem5 keep running the elf to the end:

  1. ./build/RISCV/gem5.debug --listener-mode=on
    --allow-remote-connections --remote-gdb-port=7000
    ./configs/example/fs.py --kernel=riscv.elf
  2. riscv64-unknown-elf-gdb riscv.elf
  3. target remote localhost:7000

Is there anything I did wrong or I haven't done?

Thanks.


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

gem5.debug fs.py --kernel=riscv.elf --wait-gdb On 6/15/23 22:17, wanghw364 via gem5-users wrote: > Hi, > Does gem5 riscv support remote gdb to debug the target riscv elf? > > I tried in this way but riscv gdb can't connect gem5 and showed > connection time out and gem5 keep running the elf to the end: > 1. ./build/RISCV/gem5.debug --listener-mode=on > --allow-remote-connections --remote-gdb-port=7000 > ./configs/example/fs.py --kernel=riscv.elf > 2. riscv64-unknown-elf-gdb riscv.elf > 3. target remote localhost:7000 > > Is there anything I did wrong or I haven't done? > > Thanks. > > > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org