Added support for generating expressions that have
access to the members of the Objective-C self object.

The approach we take is to generate the method as a
@category on top of the self object, and to pass the
"self" pointer to it.  (_cmd is currently NULL.)

Most changes are in ClangExpressionDeclMap, but the
change that adds support to the ABIs to pass _cmd
touches a fair amount of code.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@121722 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangFunction.cpp b/source/Expression/ClangFunction.cpp
index 3dc31ec..3eac429 100644
--- a/source/Expression/ClangFunction.cpp
+++ b/source/Expression/ClangFunction.cpp
@@ -372,7 +372,8 @@
                                             Stream &errors, 
                                             bool stop_others, 
                                             bool discard_on_error, 
-                                            lldb::addr_t *this_arg)
+                                            lldb::addr_t *this_arg,
+                                            lldb::addr_t *cmd_arg)
 {
     // FIXME: Use the errors Stream for better error reporting.
 
@@ -388,11 +389,12 @@
 
     Address wrapper_address (NULL, func_addr);
     ThreadPlan *new_plan = new ThreadPlanCallFunction (*exe_ctx.thread, 
-                                          wrapper_address,
-                                          args_addr,
-                                          stop_others, 
-                                          discard_on_error,
-                                          this_arg);
+                                                       wrapper_address,
+                                                       args_addr,
+                                                       stop_others, 
+                                                       discard_on_error,
+                                                       this_arg,
+                                                       cmd_arg);
     return new_plan;
 }