You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem(the script, 'scripts/coredump/coredump_gdbserver.py', seems to have difficulty in decoding a coredump.bin, especially for riscv64 architecture.) happened when I tried to run a gdb client and it doesn't show any information(no stack, the program is not being run.).
My environment and reproduction steps are as follows.
build the example and run it on QEMU
$ cd $ZEPHYR_BASE
$ mkdir build-example
$ cd build-example
$ cmake -DBOARD=qemu_riscv32 $ZEPHYR_BASE/samples/hello_world
$ make
$ make run
save the output from serial("coredump.txt") and convert it into a coredump binary("coredump.bin") by runnig a coredump parser script
Hi folks,
This problem(the script, 'scripts/coredump/coredump_gdbserver.py', seems to have difficulty in decoding a coredump.bin, especially for riscv64 architecture.) happened when I tried to run a gdb client and it doesn't show any information(no stack, the program is not being run.).
My environment and reproduction steps are as follows.
*. Environments
- OS : Ubuntu_22.04.4
- Zephyr : 3.6.99
- Zephyr SDK : 0.16.5-1
*. Reproduction steps
Modify source code "$ZEPHYR_BASE/samples/hello_world/src/main.c"
enable COREDUMP "$ZEPHYR_BASE/samples/hello_world/prj.conf"
build the example and run it on QEMU
$ cd $ZEPHYR_BASE
$ mkdir build-example
$ cd build-example
$ cmake -DBOARD=qemu_riscv32 $ZEPHYR_BASE/samples/hello_world
$ make
$ make run
save the output from serial("coredump.txt") and convert it into a coredump binary("coredump.bin") by runnig a coredump parser script
run a coredump gdb server on one terminal & a gdb client on the other terminal
$ZEPHYR_BASE/scripts/coredump/coredump_gdbserver.py zephyr/zephyr.elf coredump.bin
$ZEPHYR_SDK_BASE/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb zephyr/zephyr.elf
Kind regards,
Kevin
The text was updated successfully, but these errors were encountered: