Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reset all Hashtables. | Bernhard Schommer | 2015-10-08 | 1 | -1/+5 |
| | |||||
* | Fast fix for functions in different sections in one compilation unit for gcc. | Bernhard Schommer | 2015-10-06 | 3 | -6/+23 |
| | |||||
* | Ensure that there are file directives for all files used in the debug | Bernhard Schommer | 2015-10-04 | 4 | -7/+18 |
| | | | | information. | ||||
* | 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 | 7 | -73/+148 |
|\ | | | | | | | | | Conflicts: debug/DebugInformation.ml | ||||
| * | First try of debug information for gcc. | Bernhard Schommer | 2015-10-02 | 7 | -30/+88 |
| | | |||||
| * | Started implementation of gnu compatible debug information. | Bernhard Schommer | 2015-10-02 | 4 | -48/+65 |
| | | |||||
* | | 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 | 1 | -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 Schommer | 2015-10-01 | 3 | -146/+163 |
| | |||||
* | Cleanup of now no longer needed functions. | Bernhard Schommer | 2015-10-01 | 1 | -1/+0 |
| | |||||
* | Use also fucntion id for local variables since atom is not unique. | Bernhard Schommer | 2015-10-01 | 4 | -21/+21 |
| | |||||
* | 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 | 5 | -4/+21 |
| | |||||
* | Remove unused globals also from the debug informations. | Bernhard Schommer | 2015-10-01 | 5 | -15/+30 |
| | |||||
* | 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 | 1 | -1/+6 |
| | | | | Producer as well as target system. | ||||
* | Fixed minor issue with parameters that get put on the stack, made | Bernhard Schommer | 2015-09-30 | 1 | -11/+8 |
| | | | | 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 | 8 | -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 all | Bernhard Schommer | 2015-09-28 | 7 | -27/+59 |
| | | | | scopes before the last statement. | ||||
* | Changed the size expression to 2byte for debug_loc entries. | Bernhard Schommer | 2015-09-28 | 1 | -1/+18 |
| | |||||
* | More refactoring of the Debug Information. | Bernhard Schommer | 2015-09-27 | 3 | -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 old | Bernhard Schommer | 2015-09-27 | 4 | -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 Schommer | 2015-09-25 | 5 | -36/+98 |
| | |||||
* | Added support for the locations of stack allocated local variables. | Bernhard Schommer | 2015-09-25 | 8 | -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 Schommer | 2015-09-24 | 4 | -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 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 | 4 | -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 Schommer | 2015-09-22 | 6 | -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_locations | Bernhard Schommer | 2015-09-21 | 3 | -3/+7 |
|\ | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml | ||||
| * | Various changes in the debug printer. | Bernhard Schommer | 2015-09-07 | 4 | -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. | ||||
| * | Set structure declaration field to None. | Bernhard Schommer | 2015-09-07 | 1 | -4/+4 |
| | | | | | | | | | | In the case of a structure definition we do not need to set the structure declaration field set to false. | ||||
* | | New version of adding scopes etc. | Bernhard Schommer | 2015-09-20 | 3 | -15/+62 |
| | | | | | | | | | | 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 Schommer | 2015-09-18 | 4 | -12/+105 |
| | | | | | | | | | | | | 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 Schommer | 2015-09-17 | 8 | -617/+357 |
| | | | | | | | | | | 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 Schommer | 2015-09-16 | 5 | -27/+59 |
| | | | | | | | | | | | | 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 Schommer | 2015-09-16 | 4 | -12/+176 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Further function to add debug information. | Bernhard Schommer | 2015-09-15 | 1 | -31/+67 |
| | | | | | | | | | | Added the rest of the global declarations and started adding functions to fill in the missing information about struct and union fields etc. | ||||
* | | Started adding function information to the debug information. | Bernhard Schommer | 2015-09-15 | 1 | -3/+48 |
| | | |||||
* | | Implemented insert_type function and started implementing add declaration. | Bernhard Schommer | 2015-09-14 | 1 | -13/+206 |
| | | | | | | | | | | | | The insert_type function add types by adding their subtypes. Also currently the structs or unions are added as empty skeletopn and later during filled during the inserting of the declarations. | ||||
* | | Started implementing the typ insert methods. | Bernhard Schommer | 2015-09-11 | 2 | -50/+99 |
| | | | | | | | | | | | | In contrast to CtoDwarf this time we use the name to identify everything. To make this work we print the full identifier with stamp to avoid the problems with anonymous structs and unions. | ||||
* | | Started implementing the types needed for storing the debug information. | Bernhard Schommer | 2015-09-11 | 2 | -1/+110 |
| | | |||||
* | | Revert "Startet implementation of new Debug interface." | Bernhard Schommer | 2015-09-10 | 3 | -88/+1 |
| | | | | | | | | This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed. | ||||
* | | Startet implementation of new Debug interface. | Bernhard Schommer | 2015-09-06 | 3 | -1/+88 |
| | | | | | | | | | | | | 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. | ||||
* | | Added the abbreviation for symbol constants. | Bernhard Schommer | 2015-08-26 | 1 | -0/+1 |
| | | |||||
* | | Merge branch 'master' into debug_locations | Bernhard Schommer | 2015-08-26 | 2 | -21/+31 |
|\| | | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli |