Skip to content

the disassembly doesn't work, switch to assembly is not working. on platform native #5343

@murmurlab

Description

@murmurlab
Image

I was only going to use Platformio for its debugger, but when I try to debug an empty C file on the native platform, the disassembly part doesn't appear. And it seems like it's not correctly interpreting my main function in the callstack (see image). 'Switch to assembly' is not working; no editor tabs or anything like that appear.

murmur@murmur-IdeaPad-3-15ALC6:~/sources/asm-learn$ ps ax| grep gdb | cat 1810226 ? S 0:00 /home/murmur/.platformio/penv/bin/python /home/murmur/.platformio/penv/bin/platformio debug -e native --load-mode manual --interface gdb --interpreter=mi2 -q 1810230 ? Sl 0:00 gdb -q --directory /home/murmur/.platformio/.cache/.piodebug-1pwfmkst --directory /home/murmur/Documents/PlatformIO/Projects/260101-203605-hello-world -l 10 --interpreter=mi2 -q /home/murmur/Documents/PlatformIO/Projects/260101-203605-hello-world/.pio/build/native/program 1811837 pts/8 S+ 0:00 grep --color=auto gdb murmur@murmur-IdeaPad-3-15ALC6:~/sources/asm-learn$

I have no idea, but I noticed that the VS Code Platformio extension uses interpreter=mi2 when running its gdb. Does it use the standard mscppdbg? Maybe that's related, I have no idea.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions