aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Filled in the rest of the funciton needed for thte debug info under arm.Bernhard Schommer2015-10-098-24/+84
| | | | | | 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.
* Added versions of the tranform_* functions in AST to work with functionsBernhard Schommer2015-10-084-25/+220
| | | | | | | | taking the ident as argument. This functions are currently not used inside the proven part but it is nice to have them already there, when they are used by some future pass. They also come equiped with the corresponding proofs.
* Moved expandation of debug information to Asmexpandaux.Bernhard Schommer2015-10-082-66/+74
| | | | | | The function is generalized to work for all backends and takes as additional arguments functions for the printing of the simple instructions and the translation function for the arguments.
* Reset all Hashtables.Bernhard Schommer2015-10-081-1/+5
|
* Push the linker args separate.Bernhard Schommer2015-10-061-2/+4
|
* Fast fix for functions in different sections in one compilation unit for gcc.Bernhard Schommer2015-10-063-6/+23
|
* Handle the special case of a typedef to void funciton parameter to beBernhard Schommer2015-10-051-2/+2
| | | | handled as a function with void parameter.
* Merge branch 'master' of github.com:AbsInt/CompCertBernhard Schommer2015-10-0411-24/+83
|\
| * Fixed minor typos in the comments.Bernhard Schommer2015-10-042-2/+2
| |
| * Ensure that there are file directives for all files used in the debugBernhard Schommer2015-10-046-15/+28
| | | | | | | | information.
| * Allow redefinition of a typedef with the same name.Bernhard Schommer2015-10-043-7/+53
| | | | | | | | | | C11 allows a typedef redefinition if the types are the same. We now allow this also and issue a warning and an error if the types are different.
* | Activate the advanced debug for the gcc build.Bernhard Schommer2015-10-031-1/+2
|/
* Add the forgotten Fileinfo also to arm and ia32 TargetPrinter.mlBernhard Schommer2015-10-022-0/+2
|
* 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-0211-149/+255
|\ | | | | | | | | Conflicts: debug/DebugInformation.ml
| * First try of debug information for gcc.Bernhard Schommer2015-10-0211-106/+195
| |
| * Started implementation of gnu compatible debug information.Bernhard Schommer2015-10-024-48/+65
| |
* | Quote the section names in the json files.Bernhard Schommer2015-10-021-1/+1
| |
* | Add also all files for local variables.Bernhard Schommer2015-10-021-0/+1
| |
* | Always call print debug_section in the prologue.Bernhard Schommer2015-10-022-19/+19
|/ | | | | 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-016-51/+1
|
* Merge pull request #57 from jhjourdan/parser_fixBernhard Schommer2015-10-018-161/+403
|\ | | | | Correction of a few bugs in the pre-parser, added comments.
| * Fixed a few bugs in the pre parser. In particular, the following codeJacques-Henri Jourdan2015-09-308-161/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was not parsed correctly: typedef int a; int f() { for(int a; ;) if(1); a * x; } Additionnaly, I tried to add some comments in the pre-parser code, especially for the different hacks used to solve various conflicts.
* | Removed the debug output for the debug information.Bernhard Schommer2015-10-011-2/+1
| |
* | Use also fucntion id for local variables since atom is not unique.Bernhard Schommer2015-10-015-24/+24
| |
* | Do not move the line directives.Bernhard Schommer2015-10-011-5/+9
| |
* | 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-016-5/+23
| |
* | Remove unused globals also from the debug informations.Bernhard Schommer2015-10-016-16/+36
| |
* | 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-302-2/+7
| | | | | | | | Producer as well as target system.
* | Add the version string to the printed asm.Bernhard Schommer2015-09-301-1/+6
| |
* | Merge pull request #56 from AbsInt/debug_locationsBernhard Schommer2015-09-3033-909/+2257
|\ \ | |/ |/| Debug locations
| * Fixed minor issue with parameters that get put on the stack, madeBernhard Schommer2015-09-303-17/+18
| | | | | | | | 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-2815-179/+228
| | | | | | | | | | | | 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-289-29/+68
| | | | | | | | scopes before the last statement.
| * Changed the size expression to 2byte for debug_loc entries.Bernhard Schommer2015-09-281-1/+18
| |
| * Added back again the emitting of the debuging annotations for debugingBernhard Schommer2015-09-271-3/+4
| | | | | | | | purpose.
| * More refactoring of the Debug Information.Bernhard Schommer2015-09-274-51/+103
| | | | | | | | | | | | | | 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-279-111/+37
| | | | | | | | | | | | | | | | 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-256-37/+99
| |
| * Added support for the locations of stack allocated local variables.Bernhard Schommer2015-09-2516-98/+318
| | | | | | | | | | 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-245-9/+152
| | | | | | | | | | 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-236-11/+27
| | | | | | | | | | | | 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.