diff options
Diffstat (limited to 'src/common/dwarf/functioninfo.h')
-rw-r--r-- | src/common/dwarf/functioninfo.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/common/dwarf/functioninfo.h b/src/common/dwarf/functioninfo.h index 9efae6d4..5c733c6d 100644 --- a/src/common/dwarf/functioninfo.h +++ b/src/common/dwarf/functioninfo.h @@ -53,20 +53,20 @@ struct FunctionInfo { // File containing this function string file; // Line number for start of function. - uint32 line; + uint32_t line; // Beginning address for this function - uint64 lowpc; + uint64_t lowpc; // End address for this function. - uint64 highpc; + uint64_t highpc; // Ranges offset - uint64 ranges; + uint64_t ranges; }; struct SourceFileInfo { // Name of the source file name string name; // Low address of source file name - uint64 lowpc; + uint64_t lowpc; }; typedef std::map<uint64, FunctionInfo*> FunctionMap; @@ -86,12 +86,12 @@ class CULineInfoHandler: public LineInfoHandler { // Called when we define a directory. We just place NAME into dirs_ // at position DIR_NUM. - virtual void DefineDir(const string& name, uint32 dir_num); + virtual void DefineDir(const string& name, uint32_t dir_num); // Called when we define a filename. We just place // concat(dirs_[DIR_NUM], NAME) into files_ at position FILE_NUM. virtual void DefineFile(const string& name, int32 file_num, - uint32 dir_num, uint64 mod_time, uint64 length); + uint32_t dir_num, uint64_t mod_time, uint64_t length); // Called when the line info reader has a new line, address pair @@ -100,8 +100,9 @@ class CULineInfoHandler: public LineInfoHandler { // containing the code, LINE_NUM is the line number in that file for // the code, and COLUMN_NUM is the column number the code starts at, // if we know it (0 otherwise). - virtual void AddLine(uint64 address, uint64 length, - uint32 file_num, uint32 line_num, uint32 column_num); + virtual void AddLine(uint64_t address, uint64_t length, + uint32_t file_num, uint32_t line_num, + uint32_t column_num); private: LineMap* linemap_; @@ -131,38 +132,38 @@ class CUFunctionInfoHandler: public Dwarf2Handler { // .debug_info section. We want to see all compilation units, so we // always return true. - virtual bool StartCompilationUnit(uint64 offset, uint8 address_size, - uint8 offset_size, uint64 cu_length, - uint8 dwarf_version); + virtual bool StartCompilationUnit(uint64_t offset, uint8_t address_size, + uint8_t offset_size, uint64_t cu_length, + uint8_t dwarf_version); // Start to process a DIE at OFFSET from the beginning of the // .debug_info section. We only care about function related DIE's. - virtual bool StartDIE(uint64 offset, enum DwarfTag tag); + virtual bool StartDIE(uint64_t offset, enum DwarfTag tag); // Called when we have an attribute with unsigned data to give to // our handler. The attribute is for the DIE at OFFSET from the // beginning of the .debug_info section, has a name of ATTR, a form of // FORM, and the actual data of the attribute is in DATA. - virtual void ProcessAttributeUnsigned(uint64 offset, + virtual void ProcessAttributeUnsigned(uint64_t offset, enum DwarfAttribute attr, enum DwarfForm form, - uint64 data); + uint64_t data); // Called when we have an attribute with a DIE reference to give to // our handler. The attribute is for the DIE at OFFSET from the // beginning of the .debug_info section, has a name of ATTR, a form of // FORM, and the offset of the referenced DIE from the start of the // .debug_info section is in DATA. - virtual void ProcessAttributeReference(uint64 offset, + virtual void ProcessAttributeReference(uint64_t offset, enum DwarfAttribute attr, enum DwarfForm form, - uint64 data); + uint64_t data); // Called when we have an attribute with string data to give to // our handler. The attribute is for the DIE at OFFSET from the // beginning of the .debug_info section, has a name of ATTR, a form of // FORM, and the actual data of the attribute is in DATA. - virtual void ProcessAttributeString(uint64 offset, + virtual void ProcessAttributeString(uint64_t offset, enum DwarfAttribute attr, enum DwarfForm form, const string& data); @@ -171,7 +172,7 @@ class CUFunctionInfoHandler: public Dwarf2Handler { // Because DWARF2/3 specifies a tree of DIEs, you may get starts // before ends of the previous DIE, as we process children before // ending the parent. - virtual void EndDIE(uint64 offset); + virtual void EndDIE(uint64_t offset); private: std::vector<SourceFileInfo>* files_; @@ -183,7 +184,7 @@ class CUFunctionInfoHandler: public Dwarf2Handler { const SectionMap& sections_; ByteReader* reader_; FunctionInfo* current_function_info_; - uint64 current_compilation_unit_offset_; + uint64_t current_compilation_unit_offset_; }; } // namespace dwarf2reader |