aboutsummaryrefslogtreecommitdiffstats
path: root/debug
Commit message (Collapse)AuthorAgeFilesLines
...
* Implemented the usage of DW_AT_ranges for non-contiguous address ranges.Bernhard Schommer2015-10-164-59/+127
| | | | | | | | | | The gcc produces DW_AT_ranges for non-contiguous address ranges, like compilation units containing functions which are placed in different ELF-sections or lexical scopes that are split up. With this commit CompCert also uses this DWARF v3 feature for gnu backend based targets. In order to ensure backward compability a flag is added which avoids this and produces debug info in DWARF v2 format. Bug 17392.
* First step to implemente address ranges for the gnu backend.Bernhard Schommer2015-10-157-76/+95
| | | | | | | | | 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.
* More verbose debug printer.Bernhard Schommer2015-10-143-226/+273
| | | | | | | | Like, for example the clang, CompCert now prints a more detailed descriptions of the debug information in the assembler file. For each abbreviation and debug entry the dwarf attributes and their encodings are added. Bug 17392.
* Reworked the section interface for the debug information.Bernhard Schommer2015-10-143-20/+30
| | | | | | 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-147-78/+78
|
* Changed the type of the debug sections with additional string.Bernhard Schommer2015-10-131-3/+4
| | | | | | | | Instead of using a string they now take an optional string, which should be none if the backend is not the diab backend and the corresponding section is the text section and Some s with s being the custom section name else. Bug 17392.
* Implement the usage of the debug_str section for the gcc backend.Bernhard Schommer2015-10-133-470/+537
| | | | | | | | GCC prints all string larger than 3 characters in the debug_str section which reduces the size of the debug information since entries containing the same string now map to the same string in the debug_str sections. Bug 17392.
* Remove unused members from debug types.Bernhard Schommer2015-10-133-21/+0
| | | | | | | The dwarf 2 standard allows more attributes for certain debuggint entries than used by gcc or diab data. Since they are also not set by compcert they can be removed. Bug 17392.
* Removed unused function.Bernhard Schommer2015-10-131-7/+2
| | | | | The function exists_type is not really used so we can remove it. Bug 17392.
* Changed definition of implem for debug information.Bernhard Schommer2015-10-124-171/+134
| | | | | | | 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.
* Use a more descriptive type for diab debug entries.Bernhard Schommer2015-10-123-13/+25
| | | | | | Instead of using a tuple we now use a record with descriptive names for the different entries. Bug 17392
* Move strip functions to Cutil.Bernhard Schommer2015-10-121-41/+1
| | | | | | Since the strip functions might be useful in other context and is more general then the debug information. Bug 17392.
* Do not insert atom to global variable mapping.Bernhard Schommer2015-10-121-18/+1
| | | | | | The atom to global variable debug id mapping is never used so we do not need to insert global variables into it. Bug 17392.
* Unified function for adding the atom identifier.Bernhard Schommer2015-10-124-27/+24
| | | | | | | 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.
* Filled in the rest of the funciton needed for thte debug info under arm.Bernhard Schommer2015-10-091-1/+1
| | | | | | The name_of_section function no returns the correct name for the debug sections, the prologue and epilogue directives are added and the labels for the live ranges are introduced in the Asmexpand pass.
* Reset all Hashtables.Bernhard Schommer2015-10-081-1/+5
|
* Fast fix for functions in different sections in one compilation unit for gcc.Bernhard Schommer2015-10-063-6/+23
|
* Ensure that there are file directives for all files used in the debugBernhard Schommer2015-10-044-7/+18
| | | | information.
* Use rev_map so that the debug locations are in the correct order.Bernhard Schommer2015-10-021-1/+1
|
* Merge branch 'gnu-debug'Bernhard Schommer2015-10-027-73/+148
|\ | | | | | | | | Conflicts: debug/DebugInformation.ml
| * First try of debug information for gcc.Bernhard Schommer2015-10-027-30/+88
| |
| * Started implementation of gnu compatible debug information.Bernhard Schommer2015-10-024-48/+65
| |
* | Add also all files for local variables.Bernhard Schommer2015-10-021-0/+1
| |
* | Always call print debug_section in the prologue.Bernhard Schommer2015-10-021-1/+1
|/ | | | | Since files without function definition contain no function in the Section_text the filenum would be empty otherwise.
* Moved the types defined by the Debug Interface into a separate file.Bernhard Schommer2015-10-013-146/+163
|
* Cleanup of now no longer needed functions.Bernhard Schommer2015-10-011-1/+0
|
* Use also fucntion id for local variables since atom is not unique.Bernhard Schommer2015-10-014-21/+21
|
* Use different entry_to_label mapping for each compilation unit.Bernhard Schommer2015-10-011-3/+20
|
* Only print locations for symbols that are present in the assembler.Bernhard Schommer2015-10-015-4/+21
|
* Remove unused globals also from the debug informations.Bernhard Schommer2015-10-015-15/+30
|
* More robust dwarf generation. Do not add incomplete local variablesBernhard Schommer2015-09-302-14/+30
| | | | in the Debuging information.
* Also add the rest to the producer tag.Bernhard Schommer2015-09-301-1/+2
|
* Removed newline in version string and add buildnr and tag if existing toBernhard Schommer2015-09-301-1/+6
| | | | Producer as well as target system.
* Fixed minor issue with parameters that get put on the stack, madeBernhard Schommer2015-09-301-11/+8
| | | | the code more robust and added indentation for convertCompositeDef
* Avoid problem with implict declarations.Bernhard Schommer2015-09-302-4/+18
| | | | | | In order to avoid the problem that the stamp is not correct for implict declarations I insert all possible stamps of a function into my mapping and assign them one debug id.
* More fixes for the DebugInformation.Bernhard Schommer2015-09-294-20/+38
| | | | | | | Changed the sizeof function to take into account the bytes needed for the sleb128/uleb128 encoding of the DW_OP_* arguments and changed the end_live_range function to only close functions where the live range is currently open.
* Deactivate the debug functions for none advanced targets.Bernhard Schommer2015-09-291-1/+1
|
* Change the way the debug sections are printed.Bernhard Schommer2015-09-288-96/+159
| | | | | | 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-287-27/+59
| | | | scopes before the last statement.
* Changed the size expression to 2byte for debug_loc entries.Bernhard Schommer2015-09-281-1/+18
|
* More refactoring of the Debug Information.Bernhard Schommer2015-09-273-50/+102
| | | | | | | 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 printing the reference address for the LocRef and started refactoring oldBernhard Schommer2015-09-274-72/+35
| | | | | | | | Debuging code. The old functions to store the symbol for the Global variables and retrive this is no longer needed since the atom is stored in DebugInformation. Also the Debug.Abbrev module is no longer needed.
* Added translation of the range lists to location entries.Bernhard Schommer2015-09-255-36/+98
|
* Added support for the locations of stack allocated local variables.Bernhard Schommer2015-09-258-53/+232
| | | | | 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-244-3/+49
| | | | | In order to avoid the usage of too many labels we replace the debug statements during the Asmexpand phase.
* Also convert the fun stamp + scope id to debug id Hashtable in anBernhard Schommer2015-09-231-4/+6
| | | | atom + scope id Hashtable.
* Added support for printing local variables and fixed issue with .textBernhard Schommer2015-09-234-8/+20
| | | | | | 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-226-54/+142
| | | | | | 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.
* Merge branch 'debugscopes' into debug_locationsBernhard Schommer2015-09-213-3/+7
|\ | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml
| * Various changes in the debug printer.Bernhard Schommer2015-09-074-11/+11
| | | | | | | | | | | | The debug printer now uses udata for member sizes since structs can have a size larger than 255 bytes. Also functions that are inlined no longer have an high and low pc in their abbreviation entry.