Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qemu - Remote debugging loop #3373

Open
1 of 3 tasks
SecT0uch opened this issue Sep 3, 2024 · 5 comments
Open
1 of 3 tasks

Qemu - Remote debugging loop #3373

SecT0uch opened this issue Sep 3, 2024 · 5 comments

Comments

@SecT0uch
Copy link

SecT0uch commented Sep 3, 2024

Environment information

  • Operating System: Manjaro
  • Cutter version: 2.3.4
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format: AppImage

Describe the bug

The connection to gdb loops forever when trying to run a mips binary with Qemu.
Works with rizin from package manager.

To Reproduce

Steps to reproduce the behavior:

  1. Run qemu-mipsel -L buildroot/output/target/ -g 1234 ./mipsel.bin
  2. On cutter: Connect to a remote debugger
  3. Enter 127.0.0.1:1234
  4. Connecting loop..

And rizin -a mipsel -d gdb://localhost:1234 works fine.

Expected behavior

The remote debugger connects.

Screenshots

image

Bonus: when clicking Cancel or closing, cutter starts freezing and I have to kill the process.

Am I doing anything wrong ?

@XVilka
Copy link
Member

XVilka commented Sep 4, 2024

What version of the QEMU do you use? Also, @wargio is currently working on MIPS support improvement, thus relatively soon it will be heavily updated in Cutter.

@SecT0uch
Copy link
Author

SecT0uch commented Sep 4, 2024

Here is what I have:

$ qemu-arm --version
qemu-arm version 9.0.2
$ gdb --version
GNU gdb (GDB) 15.1

@XVilka
Copy link
Member

XVilka commented Sep 4, 2024

Could you try connecting using plain Rizin? It will show the exact error in the log if there's any.

@wargio
Copy link
Member

wargio commented Sep 4, 2024

i'm not sure that rizin -a mipsel is a valid arch.

@SecT0uch
Copy link
Author

SecT0uch commented Sep 4, 2024

As said initially, rizin worked.
From my history, I tried both rizin -a mips and rizin -a mipsel, so I'm not sure anymore which one worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants