aboutsummaryrefslogtreecommitdiffstats
path: root/debug
Commit message (Collapse)AuthorAgeFilesLines
* More unique debug types.Bernhard Schommer2016-01-143-26/+26
| | | | | | The typdef, enumerator and function_type types form the DebugTypes and DwarfTypes shared a some fields. This commits renames them in order to make them more unique and avoid potential name clashes.
* Sort strings in the debug_str section.Bernhard Schommer2015-12-041-0/+1
| | | | | | In order to get deterministic output code we need to sort the strings in the debug_str section by their label. Fix 17727.
* Fixed regression introduce by merge of PR#69.Bernhard Schommer2015-12-034-0/+16
| | | | | | | 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.
* Added now option to control debug output.Bernhard Schommer2015-11-161-17/+20
| | | | | | | | | | | The new option gdepth subumes the gonly-globals. The option allows it to control the level of information that is produced. This option allows it to generate debugging inforation for: -Only globals -Global and local variables but without location information for the local variable -Full information Bug 17638.
* Do not enforce locations for function parameters.Bernhard Schommer2015-11-101-1/+3
| | | | | | | In the case of struct function parameters it is not always guaranteed that they are still there and not translated into plain integer arguments. Bug 17609.
* Merge branch 'master' of ↵Michael Schmidt2015-11-061-2/+2
|\ | | | | | | git+ssh://ssh.absint.com/common/repositories/git/tools/compcert
| * Do not print parameter names in function types.Bernhard Schommer2015-11-061-2/+2
| | | | | | | | | | | | | | For function types used by function pointers we do not need to print the name of the paraments. Also switch the logic in case of prototyped/unprototyped. Fix 17579.
* | bug 17567, typosMichael Schmidt2015-11-064-11/+11
|/
* New option to control the debug information build.Bernhard Schommer2015-11-042-5/+12
| | | | | | The new option -gonly-global allows the generation of debuging information for global variables only. Bug 17566.
* bug 17567, typosMichael Schmidt2015-11-041-3/+3
|
* bug 17567, typosMichael Schmidt2015-11-042-2/+2
|
* 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.