Skip to content

Is qemu-bfin's gdb-stub broken? #5

Open
@bata24

Description

@bata24

Hello.
When trying to debug with gdb while emulating bfin's ELF, I get packet errors.
Is this the intended behavior? Or any plans to support qemu-user's GDB stubs?
Thanks.

Host: Ubuntu 22.04
bfin-linux-gcc: https://toolchains.bootlin.com/
gdb: 13.2 (built from source)

Here are the steps to reproduce:

root@Ubuntu2204:/tmp# cat test.c
#include <stdio.h>
int main() {
  puts("hoge");
  while (1) {}
}
root@Ubuntu2204:/tmp# bfin-linux-gcc -static ./test.c 
root@Ubuntu2204:/tmp# qemu-bfin -g 1234 ./a.out

root@Ubuntu2204:/tmp/qemu# /usr/local/bin/gdb -q /tmp/a.out -ex 'target remote :1234'
Reading symbols from /tmp/a.out...
Remote debugging using :1234
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions