-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
r2 0.10.2 on fresh install of raspbian #4612
Comments
Swstep have nothing to do with breakpoints or continues. So obvioysly that fixes nothing. I have no rpi3 to test this. Iirc its arm64, right? The sigill happens in the address of the breakpoint? Because then its just an issue of selecting a wrong breakpoint bytes.. Which is not really a problem but something to improve and it can be fixed in 1 line. Pls confirm
|
rpi3 is aarch64?
|
|
Some more comments: using aaa and aaaa give some bugs too (same hello world code). Here is a copy paste of what i get:
sometimes the last two lines are the previous ones, sometimes :
and these two lines are printed in orange, as other lines starting with [ |
Here is a debugging with gdb:
and the backtrace after this:
|
as discussed on tg, the segfault is fixed, the native step is still broken. |
and my rpi2 is fucked, i have to reinstall, i'll do this tomorrow night... |
there's absolutely no problem in receiving SIGILL, i have bought an rpi3, installed raspbian, compiled r2 from git and, after sertting up dbg.swstep the stepping, breakpoints, continue, works as expected. the sigill means that i'm using an illegal instruction as a breakpoint. but this is no issue at all. i'll do some more tests and try to make r2 better on rpi. |
when you say "after setting up dbg.swstep" you mean
(btw this is on a new install, using noobs) |
you have to unset the breakpoint to continue, otherwise its stopping in there. if you want to use breakpoints just to stop at that address use dcu which is much handier
|
OK, thx |
let’s say this is a bug in dbg.swstep, not related to x86 or arm. because the same issue can be reproduced on x86 when enabling swstep
|
ok, so i let you judge whether or not an issue should be open to suggest taking care of this "bug" and i close this issue. |
Hi
I encounter a bug when debugging the usual hello_world.c program on a fresh install of raspbian on a raspberry pi 3. When debugging with r2 -d:
I tried the suggestion by maijin: e dbg.swstep = true, but it still yields the same SIGILL
(rmk: i checked that gdb works fine on the same code)
All the best
The text was updated successfully, but these errors were encountered: