diff options
Diffstat (limited to 'include/lldb/Symbol/LineTable.h')
| -rw-r--r-- | include/lldb/Symbol/LineTable.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/include/lldb/Symbol/LineTable.h b/include/lldb/Symbol/LineTable.h index fe8be0c55764..684972d50789 100644 --- a/include/lldb/Symbol/LineTable.h +++ b/include/lldb/Symbol/LineTable.h @@ -10,12 +10,8 @@ #ifndef liblldb_LineTable_h_ #define liblldb_LineTable_h_ -// C Includes -// C++ Includes #include <vector> -// Other libraries and framework includes -// Project includes #include "lldb/Core/ModuleChild.h" #include "lldb/Core/RangeMap.h" #include "lldb/Core/Section.h" @@ -242,21 +238,22 @@ public: protected: struct Entry { Entry() - : file_addr(LLDB_INVALID_ADDRESS), line(0), column(0), file_idx(0), + : file_addr(LLDB_INVALID_ADDRESS), line(0), is_start_of_statement(false), is_start_of_basic_block(false), is_prologue_end(false), is_epilogue_begin(false), - is_terminal_entry(false) {} + is_terminal_entry(false), column(0), file_idx(0) {} Entry(lldb::addr_t _file_addr, uint32_t _line, uint16_t _column, uint16_t _file_idx, bool _is_start_of_statement, bool _is_start_of_basic_block, bool _is_prologue_end, bool _is_epilogue_begin, bool _is_terminal_entry) - : file_addr(_file_addr), line(_line), column(_column), - file_idx(_file_idx), is_start_of_statement(_is_start_of_statement), + : file_addr(_file_addr), line(_line), + is_start_of_statement(_is_start_of_statement), is_start_of_basic_block(_is_start_of_basic_block), is_prologue_end(_is_prologue_end), is_epilogue_begin(_is_epilogue_begin), - is_terminal_entry(_is_terminal_entry) {} + is_terminal_entry(_is_terminal_entry), column(_column), + file_idx(_file_idx) {} int bsearch_compare(const void *key, const void *arrmem); @@ -310,26 +307,30 @@ protected: //------------------------------------------------------------------ // Member variables. //------------------------------------------------------------------ - lldb::addr_t file_addr; ///< The file address for this line entry - uint32_t line; ///< The source line number, or zero if there is no line - ///number information. - uint16_t column; ///< The column number of the source line, or zero if there - ///is no column information. - uint16_t file_idx : 11, ///< The file index into CompileUnit's file table, - ///or zero if there is no file information. - is_start_of_statement : 1, ///< Indicates this entry is the beginning of - ///a statement. - is_start_of_basic_block : 1, ///< Indicates this entry is the beginning - ///of a basic block. - is_prologue_end : 1, ///< Indicates this entry is one (of possibly many) - ///where execution should be suspended for an entry - ///breakpoint of a function. - is_epilogue_begin : 1, ///< Indicates this entry is one (of possibly - ///many) where execution should be suspended for - ///an exit breakpoint of a function. - is_terminal_entry : 1; ///< Indicates this entry is that of the first - ///byte after the end of a sequence of target - ///machine instructions. + /// The file address for this line entry. + lldb::addr_t file_addr; + /// The source line number, or zero if there is no line number + /// information. + uint32_t line : 27; + /// Indicates this entry is the beginning of a statement. + uint32_t is_start_of_statement : 1; + /// Indicates this entry is the beginning of a basic block. + uint32_t is_start_of_basic_block : 1; + /// Indicates this entry is one (of possibly many) where execution + /// should be suspended for an entry breakpoint of a function. + uint32_t is_prologue_end : 1; + /// Indicates this entry is one (of possibly many) where execution + /// should be suspended for an exit breakpoint of a function. + uint32_t is_epilogue_begin : 1; + /// Indicates this entry is that of the first byte after the end + /// of a sequence of target machine instructions. + uint32_t is_terminal_entry : 1; + /// The column number of the source line, or zero if there is no + /// column information. + uint16_t column; + /// The file index into CompileUnit's file table, or zero if there + /// is no file information. + uint16_t file_idx; }; struct EntrySearchInfo { |
