Skip to content

Error while connecting to gdb server #17

@VVIsaev

Description

@VVIsaev

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

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions