Difference between revisions of "DWARF"
From Lazarus wiki
Jump to navigationJump to searchm (Categorised page; added -gw argument) |
|||
Line 1: | Line 1: | ||
{{DWARF}} | {{DWARF}} | ||
− | DWARF ( | + | '''DWARF''' ('''D'''ebugging '''W'''ith '''A'''ttributed '''R'''ecord '''F'''ormats) is a debugging data format. Dwarf is needed when debugging with [[FpDebug]]. |
Debugging information is generated by the [[Compiler|compiler]] together with the machine code. | Debugging information is generated by the [[Compiler|compiler]] together with the machine code. | ||
Line 15: | Line 15: | ||
* -gw3 Generate DWARFv3 debug information | * -gw3 Generate DWARFv3 debug information | ||
* -gw4 Generate DWARFv4 debug information | * -gw4 Generate DWARFv4 debug information | ||
+ | |||
+ | Missing dwarf-style debugging-data-format will result in a message: | ||
+ | |||
[[Category:FPC]] | [[Category:FPC]] | ||
[[Category:Debugging]] | [[Category:Debugging]] |
Revision as of 15:45, 13 October 2020
│
English (en) │
suomi (fi) │
DWARF (Debugging With Attributed Record Formats) is a debugging data format. Dwarf is needed when debugging with FpDebug.
Debugging information is generated by the compiler together with the machine code. Debugging information is read by the debugger. Debugging information is a representation of the relationship between the executable program and the original source code. This information is encoded into a pre-defined format and stored alongside the machine code.
The FPC provides the following DWARF-compatible debugging information with command line parameters:
- -gw Generate DWARFv2 debug information (same as -gw2)
- -gw2 Generate DWARFv2 debug information
- -gw3 Generate DWARFv3 debug information
- -gw4 Generate DWARFv4 debug information
Missing dwarf-style debugging-data-format will result in a message: