Commit fd3654f5 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Merging r258485:

------------------------------------------------------------------------
r258485 | bhushan.attarde | 2016-01-21 21:02:02 -0800 (Thu, 21 Jan 2016) | 9 lines

Use "_$" prefix instead of "$" for dynamic checker function inserted by LLDB during expression evaluation
    
    SUMMARY:
    The symbol "$" has a special meaning for MIPS i.e it is marker for temporary symbols for MIPS.
    So this patch uses additional _ prefix for "$__lldb_valid_pointer_check" so that it wont be marked as temporary symbol in case of MIPS.
    
    Reviewers: clayborg, spyffe
    Subscribers: dean, emaste, mohit.bhakkad, sagar, jaydeep, lldb-commits
    Differential http://reviews.llvm.org/D14111
------------------------------------------------------------------------

llvm-svn: 259525
parent 3b6b0a8d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -35,12 +35,12 @@ using namespace lldb_private;

static char ID;

#define VALID_POINTER_CHECK_NAME "$__lldb_valid_pointer_check"
#define VALID_POINTER_CHECK_NAME "_$__lldb_valid_pointer_check"
#define VALID_OBJC_OBJECT_CHECK_NAME "$__lldb_objc_object_check"

static const char g_valid_pointer_check_text[] =
"extern \"C\" void\n"
"$__lldb_valid_pointer_check (unsigned char *$__lldb_arg_ptr)\n"
"_$__lldb_valid_pointer_check (unsigned char *$__lldb_arg_ptr)\n"
"{\n"
"    unsigned char $__lldb_local_val = *$__lldb_arg_ptr;\n"
"}";