I have cases where avr-objdump -S is not mixing source code with disassembly. Some procedures in a source file are shown properly mixed, while others list the source code in one place and the disassembly in another.
It appears that this may be happening when the order of procedures in the object file is different from the source. I am using C++ and these are class methods. They seem to be in the object file in random order.
I am using the latest AVR Studio with the GCC plug-in and the latest WinAVR. Is this a known problem? Is there a work-around or plan to fix it?
BTW, is there any way to add the -C switch to avr-objdump in the makefile built by the GCC plug-in?