Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | other, simpler fix: the lexer emits 2 tokens for each identifier | Jacques-Henri Jourdan | 2015-10-08 | 4 | -257/+198 |
| | |||||
* | Handle the special case of a typedef to void funciton parameter to be | Bernhard Schommer | 2015-10-05 | 1 | -2/+2 |
| | | | | handled as a function with void parameter. | ||||
* | Merge branch 'master' of github.com:AbsInt/CompCert | Bernhard Schommer | 2015-10-04 | 11 | -24/+83 |
|\ | |||||
| * | Fixed minor typos in the comments. | Bernhard Schommer | 2015-10-04 | 2 | -2/+2 |
| | | |||||
| * | Ensure that there are file directives for all files used in the debug | Bernhard Schommer | 2015-10-04 | 6 | -15/+28 |
| | | | | | | | | information. | ||||
| * | Allow redefinition of a typedef with the same name. | Bernhard Schommer | 2015-10-04 | 3 | -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 Schommer | 2015-10-03 | 1 | -1/+2 |
|/ | |||||
* | Add the forgotten Fileinfo also to arm and ia32 TargetPrinter.ml | Bernhard Schommer | 2015-10-02 | 2 | -0/+2 |
| | |||||
* | Use rev_map so that the debug locations are in the correct order. | Bernhard Schommer | 2015-10-02 | 1 | -1/+1 |
| | |||||
* | Merge branch 'gnu-debug' | Bernhard Schommer | 2015-10-02 | 11 | -149/+255 |
|\ | | | | | | | | | Conflicts: debug/DebugInformation.ml | ||||
| * | First try of debug information for gcc. | Bernhard Schommer | 2015-10-02 | 11 | -106/+195 |
| | | |||||
| * | Started implementation of gnu compatible debug information. | Bernhard Schommer | 2015-10-02 | 4 | -48/+65 |
| | | |||||
* | | Quote the section names in the json files. | Bernhard Schommer | 2015-10-02 | 1 | -1/+1 |
| | | |||||
* | | Add also all files for local variables. | Bernhard Schommer | 2015-10-02 | 1 | -0/+1 |
| | | |||||
* | | Always call print debug_section in the prologue. | Bernhard Schommer | 2015-10-02 | 2 | -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 Schommer | 2015-10-01 | 3 | -146/+163 |
| | |||||
* | Cleanup of now no longer needed functions. | Bernhard Schommer | 2015-10-01 | 6 | -51/+1 |
| | |||||
* | Merge pull request #57 from jhjourdan/parser_fix | Bernhard Schommer | 2015-10-01 | 8 | -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 code | Jacques-Henri Jourdan | 2015-09-30 | 8 | -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 Schommer | 2015-10-01 | 1 | -2/+1 |
| | | |||||
* | | Use also fucntion id for local variables since atom is not unique. | Bernhard Schommer | 2015-10-01 | 5 | -24/+24 |
| | | |||||
* | | Do not move the line directives. | Bernhard Schommer | 2015-10-01 | 1 | -5/+9 |
| | | |||||
* | | Use different entry_to_label mapping for each compilation unit. | Bernhard Schommer | 2015-10-01 | 1 | -3/+20 |
| | | |||||
* | | Only print locations for symbols that are present in the assembler. | Bernhard Schommer | 2015-10-01 | 6 | -5/+23 |
| | | |||||
* | | Remove unused globals also from the debug informations. | Bernhard Schommer | 2015-10-01 | 6 | -16/+36 |
| | | |||||
* | | More robust dwarf generation. Do not add incomplete local variables | Bernhard Schommer | 2015-09-30 | 2 | -14/+30 |
| | | | | | | | | in the Debuging information. | ||||
* | | Also add the rest to the producer tag. | Bernhard Schommer | 2015-09-30 | 1 | -1/+2 |
| | | |||||
* | | Removed newline in version string and add buildnr and tag if existing to | Bernhard Schommer | 2015-09-30 | 2 | -2/+7 |
| | | | | | | | | Producer as well as target system. | ||||
* | | Add the version string to the printed asm. | Bernhard Schommer | 2015-09-30 | 1 | -1/+6 |
| | | |||||
* | | Merge pull request #56 from AbsInt/debug_locations | Bernhard Schommer | 2015-09-30 | 33 | -909/+2257 |
|\ \ | |/ |/| | Debug locations | ||||
| * | Fixed minor issue with parameters that get put on the stack, made | Bernhard Schommer | 2015-09-30 | 3 | -17/+18 |
| | | | | | | | | the code more robust and added indentation for convertCompositeDef | ||||
| * | Avoid problem with implict declarations. | Bernhard Schommer | 2015-09-30 | 2 | -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 Schommer | 2015-09-29 | 4 | -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 Schommer | 2015-09-29 | 1 | -1/+1 |
| | | |||||
| * | Change the way the debug sections are printed. | Bernhard Schommer | 2015-09-28 | 15 | -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 all | Bernhard Schommer | 2015-09-28 | 9 | -29/+68 |
| | | | | | | | | scopes before the last statement. | ||||
| * | Changed the size expression to 2byte for debug_loc entries. | Bernhard Schommer | 2015-09-28 | 1 | -1/+18 |
| | | |||||
| * | Added back again the emitting of the debuging annotations for debuging | Bernhard Schommer | 2015-09-27 | 1 | -3/+4 |
| | | | | | | | | purpose. | ||||
| * | More refactoring of the Debug Information. | Bernhard Schommer | 2015-09-27 | 4 | -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 old | Bernhard Schommer | 2015-09-27 | 9 | -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 Schommer | 2015-09-25 | 6 | -37/+99 |
| | | |||||
| * | Added support for the locations of stack allocated local variables. | Bernhard Schommer | 2015-09-25 | 16 | -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 Schommer | 2015-09-24 | 5 | -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 an | Bernhard Schommer | 2015-09-23 | 1 | -4/+6 |
| | | | | | | | | atom + scope id Hashtable. | ||||
| * | Added support for printing local variables and fixed issue with .text | Bernhard Schommer | 2015-09-23 | 6 | -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. | ||||
| * | Merge branch 'debugscopes' into debug_locations | Bernhard Schommer | 2015-09-23 | 2 | -38/+40 |
| |\ | | | | | | | | | | | | | Conflicts: cparser/Unblock.ml | ||||
| | * | Continuing experiment: track the scopes of local variables via __builtin_debug | Xavier Leroy | 2015-09-21 | 2 | -39/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As observed by B. Schommer, it is not enough to track scopes for every source line, as blocks can occur on a single line (think macros). Hence: - Revert debug annotations of kind 1 to contain only line number info. Generate them only when the line number changes. - Use debug annotations of kind 6 to record the list of active scopes (as BA_int integer arguments to __builtin_annot). Generate them before every nontrivial statement, even if on the same line as others. - Remove the generation of "variable x is declared in scope N" debug annotations. This can be tracked separately and more efficiently. | ||||
| * | | Record the scope structure during unblocking. | Bernhard Schommer | 2015-09-22 | 14 | -65/+173 |
| | | | | | | | | | | | | | | | | | | 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_locations | Bernhard Schommer | 2015-09-21 | 27 | -177/+342 |
| |\| | | | | | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml | ||||
| | * | Experiment: track the scopes of local variables via __builtin_debug. | Xavier Leroy | 2015-09-20 | 5 | -74/+181 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C2C: the code that insert debug builtins with the line numbers is now in Unblock. Handle calls to __builtin_debug. Unblock: generate __builtin_debug(1) for line numbers, carrying the list of active scopes as extra arguments. Generate __builtin_debug(6) for local variable declarations, carrying the corresponding scope number as extra argument. Constprop: avoid duplicating debug arguments that are constants already. PrintAsmaux: show this extra debug info as comments. |