How to show disassembly using VS Code without debugging HW? [Resolved]

Victoria Nope
Posts: 75
Joined: Fri Dec 04, 2020 9:56 pm

How to show disassembly using VS Code without debugging HW? [Resolved]

Postby Victoria Nope » Mon Dec 07, 2020 8:14 am

Hello,

is there a way to show disassembly in VS Code without debugging HW? I understand that I can see it during debugging session but I have no HW for JTAG. I would like to just inspect the way certain functions are called.

Thank you
Have a nice day
Last edited by Victoria Nope on Tue Dec 22, 2020 5:43 am, edited 1 time in total.

Victoria Nope
Posts: 75
Joined: Fri Dec 04, 2020 9:56 pm

Re: How to show disassembly using VS Code without debugging HW?

Postby Victoria Nope » Tue Dec 22, 2020 5:42 am

User ESP_Dazz answered me in this post:
You can get the disassembly yourself by running either objdump or gdb:

Assuming your project folder is "hello-world":

Code: Select all

cd hello-world
xtensa-esp32-elf-gdb ./build/hello-world.elf
Once in GDB, run:

Code: Select all

disassemble app_main

Who is online

Users browsing this forum: Baidu [Spider] and 6 guests