summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-11-08 01:14:26 +0000
committerSean Callanan <scallanan@apple.com>2013-11-08 01:14:26 +0000
commita464f3d43a58a28cf5bbacbe6e0f74519367b697 (patch)
treed7fe859f8977660d4404cada0fa43e64287b345b /lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
parent949ec546c4414b879d565ac3cc7ac4487ed0ec76 (diff)
downloadbcm5719-llvm-a464f3d43a58a28cf5bbacbe6e0f74519367b697.tar.gz
bcm5719-llvm-a464f3d43a58a28cf5bbacbe6e0f74519367b697.zip
Changed the ABIs and ClangFunction to take a
llvm::ArrayRef of arguments rather than taking a fixed number of possibly-NULL pointers to arguments. Also changed ClangFunction::GetThreadPlanToCallFunction to take the address of the argument struct by value instead of by reference, since it doesn't actually modify the value passed into it. llvm-svn: 194232
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp b/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
index 4428f372413..6d1b04f7f1a 100644
--- a/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
+++ b/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
@@ -90,17 +90,13 @@ bool lldb_private::InferiorCallMmap(Process *process, addr_t &allocated_addr,
{
ClangASTContext *clang_ast_context = process->GetTarget().GetScratchClangASTContext();
ClangASTType clang_void_ptr_type = clang_ast_context->GetBasicType(eBasicTypeVoid).GetPointerType();
+ lldb::addr_t args[] = { addr, length, prot_arg, flags_arg, fd, offset };
ThreadPlanCallFunction *call_function_thread_plan
= new ThreadPlanCallFunction (*thread,
mmap_range.GetBaseAddress(),
clang_void_ptr_type,
- options,
- &addr,
- &length,
- &prot_arg,
- &flags_arg,
- &fd,
- &offset);
+ args,
+ options);
lldb::ThreadPlanSP call_plan_sp (call_function_thread_plan);
if (call_plan_sp)
{
@@ -178,12 +174,12 @@ bool lldb_private::InferiorCallMunmap(Process *process, addr_t addr,
AddressRange munmap_range;
if (sc.GetAddressRange(range_scope, 0, use_inline_block_range, munmap_range))
{
+ lldb::addr_t args[] = { addr, length };
lldb::ThreadPlanSP call_plan_sp (new ThreadPlanCallFunction (*thread,
munmap_range.GetBaseAddress(),
ClangASTType(),
- options,
- &addr,
- &length));
+ args,
+ options));
if (call_plan_sp)
{
StreamFile error_strm;
@@ -232,6 +228,7 @@ bool lldb_private::InferiorCall(Process *process, const Address *address, addr_t
= new ThreadPlanCallFunction (*thread,
*address,
clang_void_ptr_type,
+ llvm::ArrayRef<addr_t>(),
options);
lldb::ThreadPlanSP call_plan_sp (call_function_thread_plan);
if (call_plan_sp)
OpenPOWER on IntegriCloud