Skip to content

#line directive interferes with disassembly. #1337

Closed
@WestfW

Description

@WestfW

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:

  1. copy the .ino files into the build directory.
  2. use full paths to the original files in the "#line" directives.
  3. insist that the user use -I in the avr-objdump (change or add documentation.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: PreprocessorThe Arduino sketch preprocessor converts .ino files into C++ code before compilation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions