Using qemu (user mode) with gdb testsuites

Meg Yuan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGw=KyQtJ4rA=yAc7eMr036yGz=9AM1VfZCUZUkUzQvM9AbsYw@mail.gmail.com>
Hi there,

I'm wondering if it is possible to use qemu as gdbserver when running gdb
testsuites from a riscv cross-compiler with dejagnu.

Here is an example of starting qemu (user mode) with the program at
localhost:1234:

qemu-riscv64 -g 1234 <program>

Then, we can start gdb with connection to qemu with this command:

riscv64-unknown-linux-gnu-gdb <program> -ex "target remote localhost:1234"

I am new to dejagnu. Though I tried some existing recipes, none worked out
of the box. Has anyone done this before? If so, could you give me a recipe
for an exp file?

Thanks,
Meg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.