Edit source code (MAP)

Source code can be edited in the Source code viewer. The actions Undo, Redo, Cut, Copy, Paste, Select all, Go to line, Find, Find next, Find previous, and Find in files are available from the Edit menu.

Files can be opened, saved, reverted, and closed from the File menu.

Note

Information from Linaro MAP will not match edited source files until the changes are saved, the binary is rebuilt, and a new profile is recreated.

If the currently selected file has an associated header or source code file, you can open it by right-clicking in the editor and choosing Open <filename>.<extension>. There is a global shortcut on function key F4, or you can use Edit ‣ Switch Header/Source.

To edit a source file in an external editor, right-click the editor for the file and choose Open in external editor. To change the editor used, or if the file does not open with the default settings, select File ‣ Options to open the Options window (Linaro Forge ‣ Preferences on Mac OS X) then enter the path to the preferred editor in Editor, for example /usr/bin/gedit.

If a file is edited, a warning will be displayed at the top of the editor.

File edited warning

This is to warn that the source code shown is not the source that was used to produce the currently executing binary. The source code and line numbers may not match the executing code.