You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging starts normally and I can step over functions etc.
However, the "switch to disassembly" button in the VSCode unified debugger is not working (does nothing). Also, the "disassemble function" button gives the wrong output.
When I do disassemble setup in the Debug Console (=gdb console) I get
disassemble setup
Dump of assembler code for function setup:
0x000011a4 <+0>: call 0x116e ; 0x116e <debug_init>
0x000011a8 <+4>: ldi r22, 0x01 ; 1
0x000011aa <+6>: ldi r24, 0x0D ; 13
0x000011ac <+8>: call 0x218 ; 0x218 <pinMode>
0x000011b0 <+12>: ret
End of assembler dump.
when using the button "Disassemble function" I get
This issue was already discussed at https://community.platformio.org/t/avr-simulator-as-aid-tool-for-debugging-code/13444/31 where it initially had something to do with a buggy GDB version that interpreted code addresses as data addresses, which map to different memories in the AVR architecture (Harvard architecture). Then a fixed version was created and used as a package (I think, can't quite remember)
However if a disassemble setup GDB command does produce the right output, then the PIO unified debugger should be able to use that, too. Maybe it uses a different command to extract the disassembly and that triggers that avr-gdb bug again. Since I don't know where the code is for executing that GDB command, I can't verify that.
Either way, the combination above is not working in the GUI well, thus this bug here.
The text was updated successfully, but these errors were encountered:
With a
platformio.ini
ofand
src\main.cpp
Debugging starts normally and I can step over functions etc.
However, the "switch to disassembly" button in the VSCode unified debugger is not working (does nothing). Also, the "disassemble function" button gives the wrong output.
When I do
disassemble setup
in the Debug Console (=gdb console) I getwhen using the button "Disassemble function" I get
notice the different address
0x008011a4
.This issue was already discussed at https://community.platformio.org/t/avr-simulator-as-aid-tool-for-debugging-code/13444/31 where it initially had something to do with a buggy GDB version that interpreted code addresses as data addresses, which map to different memories in the AVR architecture (Harvard architecture). Then a fixed version was created and used as a package (I think, can't quite remember)
However if a
disassemble setup
GDB command does produce the right output, then the PIO unified debugger should be able to use that, too. Maybe it uses a different command to extract the disassembly and that triggers thatavr-gdb
bug again. Since I don't know where the code is for executing that GDB command, I can't verify that.Either way, the combination above is not working in the GUI well, thus this bug here.
The text was updated successfully, but these errors were encountered: