-
Notifications
You must be signed in to change notification settings - Fork 523
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
[5.3] Different available breakpoints (dev build) compared to book #531
Comments
Having this same issue on iMac. |
Same issue here on M1 Mac. The lines in the range 13-15 seem to be absent, you can verify this by executing |
I got it to work by downgrading rust to 1.66 and UPD. |
This is also currently happening on Arch Linux for me. For now I'll move forward with the chapter and "take his word for it". |
Immediate discoveries: the lines in question aren't actually being compiled away. By manually |
I have the same issue on Linux Mint 20.04, Ubuntu 20.04. I.e. jumping from line 12 to 15 whilst single stepping. |
Not entirely sure what is happening here, I'm guessing it's some compiler optimization, but I can't seem to put a breakpoint on line 13 as shown in the chapter. Instead it only allows me to break on line 12 and line 16 (the loop).
The asm TUI looks like this:
While the disassembly looks like this:
At first glance it seems like the statement on line 13 has been optimized away, but I'm pretty sure the binary was built without optimizations:
For the record, I'm running this on Mac M1, with arm-none-eabi-gdb as the debugger
The text was updated successfully, but these errors were encountered: