summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/LanguageRuntime.cpp2
-rw-r--r--lldb/source/Target/Memory.cpp2
-rw-r--r--lldb/source/Target/OperatingSystem.cpp4
-rw-r--r--lldb/source/Target/Platform.cpp4
-rw-r--r--lldb/source/Target/Process.cpp2
-rw-r--r--lldb/source/Target/StackFrameList.cpp2
-rw-r--r--lldb/source/Target/Target.cpp10
-rw-r--r--lldb/source/Target/UnwindAssembly.cpp2
8 files changed, 14 insertions, 14 deletions
diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp
index 7a6bfbe46a8..d3d3fe1f0bd 100644
--- a/lldb/source/Target/LanguageRuntime.cpp
+++ b/lldb/source/Target/LanguageRuntime.cpp
@@ -228,7 +228,7 @@ protected:
LanguageRuntime*
LanguageRuntime::FindPlugin (Process *process, lldb::LanguageType language)
{
- std::auto_ptr<LanguageRuntime> language_runtime_ap;
+ STD_UNIQUE_PTR(LanguageRuntime) language_runtime_ap;
LanguageRuntimeCreateInstance create_callback;
for (uint32_t idx = 0;
diff --git a/lldb/source/Target/Memory.cpp b/lldb/source/Target/Memory.cpp
index ae8d034f77b..f9aaca1e356 100644
--- a/lldb/source/Target/Memory.cpp
+++ b/lldb/source/Target/Memory.cpp
@@ -178,7 +178,7 @@ MemoryCache::Read (addr_t addr,
if (bytes_left > 0)
{
assert ((curr_addr % cache_line_byte_size) == 0);
- std::auto_ptr<DataBufferHeap> data_buffer_heap_ap(new DataBufferHeap (cache_line_byte_size, 0));
+ STD_UNIQUE_PTR(DataBufferHeap) data_buffer_heap_ap(new DataBufferHeap (cache_line_byte_size, 0));
size_t process_bytes_read = m_process.ReadMemoryFromInferior (curr_addr,
data_buffer_heap_ap->GetBytes(),
data_buffer_heap_ap->GetByteSize(),
diff --git a/lldb/source/Target/OperatingSystem.cpp b/lldb/source/Target/OperatingSystem.cpp
index 2c725d3b199..54348856142 100644
--- a/lldb/source/Target/OperatingSystem.cpp
+++ b/lldb/source/Target/OperatingSystem.cpp
@@ -28,7 +28,7 @@ OperatingSystem::FindPlugin (Process *process, const char *plugin_name)
create_callback = PluginManager::GetOperatingSystemCreateCallbackForPluginName (plugin_name);
if (create_callback)
{
- std::auto_ptr<OperatingSystem> instance_ap(create_callback(process, true));
+ STD_UNIQUE_PTR(OperatingSystem) instance_ap(create_callback(process, true));
if (instance_ap.get())
return instance_ap.release();
}
@@ -37,7 +37,7 @@ OperatingSystem::FindPlugin (Process *process, const char *plugin_name)
{
for (uint32_t idx = 0; (create_callback = PluginManager::GetOperatingSystemCreateCallbackAtIndex(idx)) != NULL; ++idx)
{
- std::auto_ptr<OperatingSystem> instance_ap(create_callback(process, false));
+ STD_UNIQUE_PTR(OperatingSystem) instance_ap(create_callback(process, false));
if (instance_ap.get())
return instance_ap.release();
}
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp
index bc365603774..e58618e36d4 100644
--- a/lldb/source/Target/Platform.cpp
+++ b/lldb/source/Target/Platform.cpp
@@ -109,7 +109,7 @@ Platform::FindPlugin (Process *process, const char *plugin_name)
{
arch = process->GetTarget().GetArchitecture();
}
- std::auto_ptr<Platform> instance_ap(create_callback(process, &arch));
+ STD_UNIQUE_PTR(Platform) instance_ap(create_callback(process, &arch));
if (instance_ap.get())
return instance_ap.release();
}
@@ -118,7 +118,7 @@ Platform::FindPlugin (Process *process, const char *plugin_name)
{
for (uint32_t idx = 0; (create_callback = PluginManager::GetPlatformCreateCallbackAtIndex(idx)) != NULL; ++idx)
{
- std::auto_ptr<Platform> instance_ap(create_callback(process, false));
+ STD_UNIQUE_PTR(Platform) instance_ap(create_callback(process, false));
if (instance_ap.get())
return instance_ap.release();
}
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index c65ceb1d575..9ab9bc313f7 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -4440,7 +4440,7 @@ Process::SetSTDIOFileDescriptor (int file_descriptor)
{
// First set up the Read Thread for reading/handling process I/O
- std::auto_ptr<ConnectionFileDescriptor> conn_ap (new ConnectionFileDescriptor (file_descriptor, true));
+ STD_UNIQUE_PTR(ConnectionFileDescriptor) conn_ap (new ConnectionFileDescriptor (file_descriptor, true));
if (conn_ap.get())
{
diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp
index dad67dc51d8..41f57658e63 100644
--- a/lldb/source/Target/StackFrameList.cpp
+++ b/lldb/source/Target/StackFrameList.cpp
@@ -717,7 +717,7 @@ StackFrameList::InvalidateFrames (uint32_t start_idx)
}
void
-StackFrameList::Merge (std::auto_ptr<StackFrameList>& curr_ap, lldb::StackFrameListSP& prev_sp)
+StackFrameList::Merge (STD_UNIQUE_PTR(StackFrameList)& curr_ap, lldb::StackFrameListSP& prev_sp)
{
Mutex::Locker curr_locker (curr_ap.get() ? &curr_ap->m_mutex : NULL);
Mutex::Locker prev_locker (prev_sp.get() ? &prev_sp->m_mutex : NULL);
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index ea97fd7d641..8d3e19e7d28 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -76,9 +76,9 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::Plat
m_valid (true),
m_search_filter_sp (),
m_image_search_paths (ImageSearchPathsChanged, this),
- m_scratch_ast_context_ap (NULL),
- m_scratch_ast_source_ap (NULL),
- m_ast_importer_ap (NULL),
+ m_scratch_ast_context_ap (),
+ m_scratch_ast_source_ap (),
+ m_ast_importer_ap (),
m_persistent_variables (),
m_source_manager_ap(),
m_stop_hooks (),
@@ -2143,7 +2143,7 @@ Target::StopHook::StopHook (lldb::TargetSP target_sp, lldb::user_id_t uid) :
m_target_sp (target_sp),
m_commands (),
m_specifier_sp (),
- m_thread_spec_ap(NULL),
+ m_thread_spec_ap(),
m_active (true)
{
}
@@ -2153,7 +2153,7 @@ Target::StopHook::StopHook (const StopHook &rhs) :
m_target_sp (rhs.m_target_sp),
m_commands (rhs.m_commands),
m_specifier_sp (rhs.m_specifier_sp),
- m_thread_spec_ap (NULL),
+ m_thread_spec_ap (),
m_active (rhs.m_active)
{
if (rhs.m_thread_spec_ap.get() != NULL)
diff --git a/lldb/source/Target/UnwindAssembly.cpp b/lldb/source/Target/UnwindAssembly.cpp
index af662b97c74..4901f6d91ae 100644
--- a/lldb/source/Target/UnwindAssembly.cpp
+++ b/lldb/source/Target/UnwindAssembly.cpp
@@ -24,7 +24,7 @@ UnwindAssembly::FindPlugin (const ArchSpec &arch)
(create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(idx)) != NULL;
++idx)
{
- std::auto_ptr<UnwindAssembly> assembly_profiler_ap (create_callback (arch));
+ STD_UNIQUE_PTR(UnwindAssembly) assembly_profiler_ap (create_callback (arch));
if (assembly_profiler_ap.get ())
return assembly_profiler_ap.release ();
}
OpenPOWER on IntegriCloud