Using qemu (user mode) with gdb testsuites
Meg Yuan <[email protected]> Tue, 1 Oct 2024 10:59:12 -0700
| Newsgroups | gmane.comp.sysutils.dejagnu.general |
|---|---|
| Message-ID | <CAGw=KyTdPGgSMS6cOg8oTyG3_pD6RiqoMvRWjD20kiFi3c77pw@mail.gmail.com> |
--000000000000d3965006236e145f Content-Type: text/plain; charset="UTF-8" Hi there, I'm wondering if it is possible to use qemu as gdbserver when running gdb testsuites from a riscv cross-compiler. 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 --000000000000d3965006236e145f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi there,<br><br>I'm wondering if it is possible to us= e qemu as gdbserver when running gdb testsuites from a riscv cross-compiler= .<br><br>Here is an example of starting qemu (user mode) with the program a= t localhost:1234:<br><br>qemu-riscv64 -g 1234 <program><br><br>Then, = we can start gdb with connection to qemu with this command:<br><br>riscv64-= unknown-linux-gnu-gdb <program> -ex "target remote localhost:123= 4"<br><br>I am new to dejagnu. Though I tried some existing recipes,= =C2=A0none worked out of the box. Has anyone done this before? If so, could= you give me a recipe for an exp file?<br><br>Thanks,<br>Meg<br></div> --000000000000d3965006236e145f--