aboutsummaryrefslogtreecommitdiffstats
path: root/debug/Debug.ml
Commit message (Collapse)AuthorAgeFilesLines
* Print only debug info for printed functions.Bernhard Schommer2019-04-161-3/+3
| | | | | | | | | | | Functions that are removed from the compilation unit, for example inline functions without extern, should not produce debug information. This commit reuses the mechanism used for variables in order to track additionally the printed functions. Therefore the printed variable versions are exchanged for a printed symbol version. Bug 26234
* Removed the open AST.Bernhard Schommer2017-02-061-4/+3
| | | | | Only two types from AST are needed and the global shadowing open can be removed.
* Code cleanup.Bernhard Schommer2016-03-101-3/+2
| | | | | | Removed some unused variables, functions etc. and resolved some problems which occur if all warnings except 3,4,9 and 29 are active. Bug 18394.
* Fixed regression introduce by merge of PR#69.Bernhard Schommer2015-12-031-0/+3
| | | | | | | Since the identifier of a function definition and of its declaration are equal we only should remove functions if the function iteself is removed. Bug 17724.
* bug 17567, typosMichael Schmidt2015-11-041-1/+1
|
* First step to implemente address ranges for the gnu backend.Bernhard Schommer2015-10-151-11/+5
| | | | | | | | | In contrast to the dcc, the gcc uses address ranges to express non-contiguous range of addresses. As a first step we set the start and end addresses for the different address ranges for the compilation unit by using the start and end addresses of functions. Bug 17392.
* Reworked the section interface for the debug information.Bernhard Schommer2015-10-141-6/+7
| | | | | | Instead of pushing strings around use the actual section. However the string is still used in the Hashtbl. Bug 17392.
* bug 17392: remove trailing whitespace in source filesMichael Schmidt2015-10-141-1/+1
|
* Changed definition of implem for debug information.Bernhard Schommer2015-10-121-62/+61
| | | | | | | Instead of making each filed mutuable we use a reference to a record of type implem. Now only the default implementation and the default debug information need to be upated to add a new function. Bug 17392.
* Unified function for adding the atom identifier.Bernhard Schommer2015-10-121-6/+3
| | | | | | | Instead of defining two functions for adding the mapping from atom to debug id we use one function which then sets the corresponding values. Bug 17392.
* Ensure that there are file directives for all files used in the debugBernhard Schommer2015-10-041-3/+6
| | | | information.
* First try of debug information for gcc.Bernhard Schommer2015-10-021-1/+7
|
* Use also fucntion id for local variables since atom is not unique.Bernhard Schommer2015-10-011-3/+3
|
* Only print locations for symbols that are present in the assembler.Bernhard Schommer2015-10-011-0/+3
|
* Remove unused globals also from the debug informations.Bernhard Schommer2015-10-011-0/+3
|
* Change the way the debug sections are printed.Bernhard Schommer2015-09-281-3/+12
| | | | | | If a user uses the #pragma use_section for functions the diab linker requires a separate debug_info section for each entry. This commit adds functionality to emulate this behavior.
* Added location for the formal parameters and move the end of allBernhard Schommer2015-09-281-0/+3
| | | | scopes before the last statement.
* More refactoring of the Debug Information.Bernhard Schommer2015-09-271-49/+0
| | | | | | | In order to remove unnecessary dependecies the implemenation type is made and the DebugInit file initializes the fields in the record. This allows it to move more functions behind the Debug interface without introducing circular dependencies.
* Added support for the locations of stack allocated local variables.Bernhard Schommer2015-09-251-3/+13
| | | | | This commit adds furher support for location information for local variables and starts with the implementation of the debug_loc section.
* Added placing labels for live ranges etc.Bernhard Schommer2015-09-241-0/+27
| | | | | In order to avoid the usage of too many labels we replace the debug statements during the Asmexpand phase.
* Added support for printing local variables and fixed issue with .textBernhard Schommer2015-09-231-1/+1
| | | | | | Local variables are now added with bogus lexical scopes to reflect the actually lexical scopes. Also this commit fixes assembler problems of the das when a user section with the name ".text" is defined.
* Record the scope structure during unblocking.Bernhard Schommer2015-09-221-7/+12
| | | | | | Instead of creating separate annotations for the local variables we call the Debug.add_lvar_scope and we construct a mapping from function id + scope id to scope information.
* New version of adding scopes etc.Bernhard Schommer2015-09-201-4/+14
| | | | | Instead of reimplementing the whole scope handling in the debug information use the existing functionality and fill the scopes explicitly in the functions.
* Started implementing the scope for the Debug Informations.Bernhard Schommer2015-09-181-0/+10
| | | | | | Scopes will be handled by a stack of all open scopes. This stack then can also be used to generate the debug directives to track the scopes through the rest of the passes.
* First version with computation of dwarf info from debug info.Bernhard Schommer2015-09-171-3/+15
| | | | | Introduced a new dwarf generation from the information collected in the DebugInformation and removed the old CtODwarf translation.
* Move more functionality in the new interface.Bernhard Schommer2015-09-161-14/+24
| | | | | | Added functions to add more information to the debuging interface, like the struct layout with offsets, bitifiled layout and removed the no longer needed mapping from stamp to atom.
* Add the debug interface file.Bernhard Schommer2015-09-161-0/+61
| | | | | | | | The new file Debug.ml contains the interface for generating and printing debug information. In order to generate debug information the init function initializes the necessary functions depending on the -g flag. If the -g is not there all functions are dummy functions which do nothing.
* Revert "Startet implementation of new Debug interface."Bernhard Schommer2015-09-101-86/+0
| | | | This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
* Startet implementation of new Debug interface.Bernhard Schommer2015-09-061-0/+86
Added a new file debug/Debug.ml which will be the interface between for generating and printing the debuging information. Currently it contains only the code for the line directived.