summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-07-02 20:42:56 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-07-02 20:42:56 +0000
commitf52f0502ca64fea974c9d8c8d8b4a607cfbcade9 (patch)
tree341bb14aa70b5833d9922b0a9b41b0196cdb12bc /lldb/source/Core/Debugger.cpp
parent5c87df3179120e7e600688d42b4478434d3b2786 (diff)
downloadbcm5719-llvm-f52f0502ca64fea974c9d8c8d8b4a607cfbcade9.tar.gz
bcm5719-llvm-f52f0502ca64fea974c9d8c8d8b4a607cfbcade9.zip
Fix Linux build errors
llvm-svn: 134347
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 39ac87abc62..21d45cde1da 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -803,7 +803,7 @@ Debugger::FormatPrompt
)
{
const char* var_name_final;
- char* close_bracket_position = NULL;
+ const char* close_bracket_position = NULL;
const char* percent_position = NULL;
const char* targetvalue;
lldb::Format custom_format = eFormatInvalid;
@@ -842,7 +842,7 @@ Debugger::FormatPrompt
{
// TODO: pick a way to say "all entries". this will make more sense once
// regex typenames are in place. now, you need to be size-aware anyways
- char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
+ const char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
close_bracket_position = ::strchr(open_bracket_position,']');
// as usual, we assume that [] will come before %
//printf("trying to expand a []\n");
@@ -1121,8 +1121,8 @@ Debugger::FormatPrompt
const char* open_bracket_position = ::strchr(var_name_begin,'[');
if(open_bracket_position && open_bracket_position < var_name_final)
{
- char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
- char* close_bracket_position = ::strchr(open_bracket_position,']');
+ const char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
+ const char* close_bracket_position = ::strchr(open_bracket_position,']');
// as usual, we assume that [] will come before %
//printf("trying to expand a []\n");
var_name_final = open_bracket_position;
@@ -1191,8 +1191,8 @@ Debugger::FormatPrompt
const char* open_bracket_position = ::strchr(var_name_begin,'[');
if(open_bracket_position && open_bracket_position < var_name_final)
{
- char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
- char* close_bracket_position = ::strchr(open_bracket_position,']');
+ const char* separator_position = ::strchr(open_bracket_position,'-'); // might be NULL if this is a simple var[N] bitfield
+ const char* close_bracket_position = ::strchr(open_bracket_position,']');
// as usual, we assume that [] will come before %
//printf("trying to expand a []\n");
var_name_final = open_bracket_position;
OpenPOWER on IntegriCloud