Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • avr-objdump -S {compiled *.elf file} produces a file that includes the C code that lead to each section of assembly code. It's much easier to follow. Commented Feb 17, 2014 at 4:02
  • aaaand I just tried it, and it's not correctly emitting inline C code for the loop function. What the hell? Commented Feb 17, 2014 at 4:08
  • Whoa, extremely strange. I compiled the project with Stino instead of the arduino editor, decompiled the *.elf from that, and then I get the proper debugging symbols. I think the Arduino text-editor/button-macro (I refuse to call it an IDE since it's not) thing is stripping the debug info from just the compiled main C++ file, for some bizarre and stupid reason. Commented Feb 17, 2014 at 4:15
  • There is an explanation, and it is to do with the way the IDE copies your files to a temporary location. You can "fix" that by telling avr-objdump where the source is: avr-objdump -S -I/path/to/the/sketch/folder xxx.elf . That is the sketch folder path, not the .ino file itself. Then you should get the C source in the dump. Commented Aug 15, 2015 at 4:59