-
-
Notifications
You must be signed in to change notification settings - Fork 7k
#line directive interferes with disassembly. #1337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This patch places #line preprocessor directives into the generated code file so that the compiler reports the correct location for error messages. http://code.google.com/p/arduino/issues/detail?id=907
@WestfW as #3303 and #3435 are merged, now object files from core and libraries are split into separate subfolders of the build folder. Plus, sketch source code is in its own folder, together with some of its source files (everything but .ino). Can you update your issue with the latest hourly build? I would like to have this fixed for 1.6.6 |
@WestfW with latest hourly we added the full path to the original source file in #line directives. Can you give it a spin a see if this issue is solved? |
Also see #3746 |
I can confirm that 1.6.6 seems to be working correctly. |
Sometime recently (77ed2f4 ) "#line" directives were added to the pre-processed code to make error messages better reflect the actual source code, instead of the pre-processed source code.
However, since the "#line" directives refer to the original file ("#line 1 Blink.ino"), which is not actually present in the build directory, dissassembly using "avr-objdump -S" cannot find the source to do a proper mixed source/assembly listing.
There are a couple of possible solutions:
The text was updated successfully, but these errors were encountered: