aboutsummaryrefslogtreecommitdiffstats
path: root/debug
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * Set structure declaration field to None.Bernhard Schommer2015-09-071-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 Schommer2015-09-203-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 Schommer2015-09-184-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 Schommer2015-09-178-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 Schommer2015-09-165-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 Schommer2015-09-164-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 Schommer2015-09-151-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 Schommer2015-09-151-3/+48
| |
* | Implemented insert_type function and started implementing add declaration.Bernhard Schommer2015-09-141-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 Schommer2015-09-112-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 Schommer2015-09-112-1/+110
| |
* | Revert "Startet implementation of new Debug interface."Bernhard Schommer2015-09-103-88/+1
| | | | | | | | This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
* | Startet implementation of new Debug interface.Bernhard Schommer2015-09-063-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 Schommer2015-08-261-0/+1
| |
* | Merge branch 'master' into debug_locationsBernhard Schommer2015-08-262-21/+31
|\| | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli
| * Fixed abbreviation of DW_TAG_formal_parameter.Bernhard Schommer2015-08-251-1/+1
| | | | | | | | | | | | Dwarf debuging entries for formal parameters were printed as variables. This could lead to confusion in function pointer types and later with local variables.
| * Fixed error in handling of anonymous struct/union/enum types.Bernhard Schommer2015-08-241-8/+15
| | | | | | | | Composite types should be always handled by the composite_type_info table and not by the normal type table.