diff options
Diffstat (limited to 'include/lldb/Utility')
-rw-r--r-- | include/lldb/Utility/AnsiTerminal.h | 31 | ||||
-rw-r--r-- | include/lldb/Utility/ProcessStructReader.h | 4 |
2 files changed, 2 insertions, 33 deletions
diff --git a/include/lldb/Utility/AnsiTerminal.h b/include/lldb/Utility/AnsiTerminal.h index 036950c1bd45..9a5117ae74ea 100644 --- a/include/lldb/Utility/AnsiTerminal.h +++ b/include/lldb/Utility/AnsiTerminal.h @@ -50,37 +50,6 @@ namespace lldb_utility { namespace ansi { - const char *k_escape_start = "\033["; - const char *k_escape_end = "m"; - - const char *k_fg_black = "30"; - const char *k_fg_red = "31"; - const char *k_fg_green = "32"; - const char *k_fg_yellow = "33"; - const char *k_fg_blue = "34"; - const char *k_fg_purple = "35"; - const char *k_fg_cyan = "36"; - const char *k_fg_white = "37"; - - const char *k_bg_black = "40"; - const char *k_bg_red = "41"; - const char *k_bg_green = "42"; - const char *k_bg_yellow = "43"; - const char *k_bg_blue = "44"; - const char *k_bg_purple = "45"; - const char *k_bg_cyan = "46"; - const char *k_bg_white = "47"; - - const char *k_ctrl_normal = "0"; - const char *k_ctrl_bold = "1"; - const char *k_ctrl_faint = "2"; - const char *k_ctrl_italic = "3"; - const char *k_ctrl_underline = "4"; - const char *k_ctrl_slow_blink = "5"; - const char *k_ctrl_fast_blink = "6"; - const char *k_ctrl_negative = "7"; - const char *k_ctrl_conceal = "8"; - const char *k_ctrl_crossed_out = "9"; inline std::string FormatAnsiTerminalCodes(const char *format, bool do_color = true) diff --git a/include/lldb/Utility/ProcessStructReader.h b/include/lldb/Utility/ProcessStructReader.h index 7b05d93151aa..d053b702462e 100644 --- a/include/lldb/Utility/ProcessStructReader.h +++ b/include/lldb/Utility/ProcessStructReader.h @@ -59,7 +59,7 @@ namespace lldb_private { // no support for bitfields in here (yet) if (is_bitfield) return; - auto size = field_type.GetByteSize(); + auto size = field_type.GetByteSize(nullptr); // no support for things larger than a uint64_t (yet) if (size > 8) return; @@ -67,7 +67,7 @@ namespace lldb_private { size_t byte_index = static_cast<size_t>(bit_offset / 8); m_fields[const_name] = FieldImpl{field_type, byte_index, static_cast<size_t>(size)}; } - size_t total_size = struct_type.GetByteSize(); + size_t total_size = struct_type.GetByteSize(nullptr); lldb::DataBufferSP buffer_sp(new DataBufferHeap(total_size,0)); Error error; process->ReadMemoryFromInferior(base_addr, |