- Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Consider simple hello program:
#include <stdio.h> int main() { printf("Hello\n"); return 0; }Check if program works and try to use gdb with it:
$ arc-elf32-gcc -Og -g -specs qemu.specs -mcpu=archs test.c -o test $ qemu-system-arc -M arc-sim -serial mon:stdio -display none -kernel ./test Hello 0QEMU: Terminated $ qemu-system-arc -M arc-sim -serial mon:stdio -display none -kernel ./test -gdb tcp::1234 -S Then if I try to connect to qemu gdb server from gdb:
$ arc-elf32-gdb ./test GNU gdb (ARCompact/ARCv2 ISA elf32 toolchain 2020.09) 10.0.50.20200611-git ... (gdb) target remote :1234 Remote debugging using :1234 Error: Couldn't find core register feature in supplied target description.warning: Architecture rejected target-supplied description 0x00000000 in ?? () It works for nsim:
$ nsimdrv -prop=nsim_isa_family=av2hs -prop=nsim_isa_core=1 ./test -gdb -port 1234 $ arc-elf32-gdb ./test # From another console GNU gdb (ARCompact/ARCv2 ISA elf32 toolchain 2020.09) 10.0.50.20200611-git ... (gdb) target remote :1234 Remote debugging using :1234 0x00000124 in __start () I used qemu from the tip of master branch and toolchain 2020.09.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working