summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver
diff options
context:
space:
mode:
authorHan Ming Ong <hanming@apple.com>2013-01-16 00:46:39 +0000
committerHan Ming Ong <hanming@apple.com>2013-01-16 00:46:39 +0000
commit2abd5ef841a458d1f55ccfe424b2570d8213ad9f (patch)
tree7504a373ef2df4d48a675c88fe46a5203296c3d3 /lldb/tools/debugserver
parentb02cb40c1882f2b3c375add5aab4ef9b75816249 (diff)
downloadbcm5719-llvm-2abd5ef841a458d1f55ccfe424b2570d8213ad9f.tar.gz
bcm5719-llvm-2abd5ef841a458d1f55ccfe424b2570d8213ad9f.zip
<rdar://problem/13019628>
Prevent profiling from working on older debugserver. Just a simple renaming since the caller is prepared to handle the ‘unimplemented’ answer. llvm-svn: 172583
Diffstat (limited to 'lldb/tools/debugserver')
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp4
-rw-r--r--lldb/tools/debugserver/source/DNB.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.h2
-rw-r--r--lldb/tools/debugserver/source/RNBRemote.cpp10
-rw-r--r--lldb/tools/debugserver/source/RNBRemote.h4
6 files changed, 12 insertions, 12 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index 5d0cdfb7c88..3f7232d1791 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -1229,12 +1229,12 @@ DNBProcessGetProfileData (nub_process_t pid)
}
nub_bool_t
-DNBProcessSetAsyncEnableProfiling (nub_process_t pid, nub_bool_t enable, uint64_t interval_usec)
+DNBProcessSetEnableAsyncProfiling (nub_process_t pid, nub_bool_t enable, uint64_t interval_usec)
{
MachProcessSP procSP;
if (GetProcessSP (pid, procSP))
{
- procSP->SetAsyncEnableProfiling(enable, interval_usec);
+ procSP->SetEnableAsyncProfiling(enable, interval_usec);
return true;
}
diff --git a/lldb/tools/debugserver/source/DNB.h b/lldb/tools/debugserver/source/DNB.h
index 745f468a6bd..2e14387cbcc 100644
--- a/lldb/tools/debugserver/source/DNB.h
+++ b/lldb/tools/debugserver/source/DNB.h
@@ -64,7 +64,7 @@ nub_addr_t DNBProcessMemoryAllocate (nub_process_t pid, nub_size_t size,
nub_bool_t DNBProcessMemoryDeallocate (nub_process_t pid, nub_addr_t addr) DNB_EXPORT;
int DNBProcessMemoryRegionInfo (nub_process_t pid, nub_addr_t addr, DNBRegionInfo *region_info) DNB_EXPORT;
std::string DNBProcessGetProfileData (nub_process_t pid) DNB_EXPORT;
-nub_bool_t DNBProcessSetAsyncEnableProfiling (nub_process_t pid, nub_bool_t enable, uint64_t interval_usec) DNB_EXPORT;
+nub_bool_t DNBProcessSetEnableAsyncProfiling (nub_process_t pid, nub_bool_t enable, uint64_t interval_usec) DNB_EXPORT;
//----------------------------------------------------------------------
// Process status
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
index a7ab89206db..67674ecd7fd 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
@@ -308,7 +308,7 @@ MachProcess::StartSTDIOThread()
}
void
-MachProcess::SetAsyncEnableProfiling(bool enable, uint64_t interval_usec)
+MachProcess::SetEnableAsyncProfiling(bool enable, uint64_t interval_usec)
{
m_profile_enabled = enable;
m_profile_interval_usec = interval_usec;
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.h b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
index 478fc99f86f..6a34fa64410 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
@@ -148,7 +148,7 @@ public:
//----------------------------------------------------------------------
// Profile functions
//----------------------------------------------------------------------
- void SetAsyncEnableProfiling (bool enable, uint64_t internal_usec);
+ void SetEnableAsyncProfiling (bool enable, uint64_t internal_usec);
bool IsProfilingEnabled () { return m_profile_enabled; }
uint64_t ProfileInterval () { return m_profile_interval_usec; }
bool StartProfileThread ();
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp
index 51ba549826b..673d74b2dc5 100644
--- a/lldb/tools/debugserver/source/RNBRemote.cpp
+++ b/lldb/tools/debugserver/source/RNBRemote.cpp
@@ -195,7 +195,7 @@ RNBRemote::CreatePacketTable ()
t.push_back (Packet (deallocate_memory, &RNBRemote::HandlePacket_DeallocateMemory, NULL, "_m", "Deallocate memory in the inferior process."));
t.push_back (Packet (memory_region_info, &RNBRemote::HandlePacket_MemoryRegionInfo, NULL, "qMemoryRegionInfo", "Return size and attributes of a memory region that contains the given address"));
t.push_back (Packet (get_profile_data, &RNBRemote::HandlePacket_GetProfileData, NULL, "qGetProfileData", "Return profiling data of the current target."));
- t.push_back (Packet (set_enable_profiling, &RNBRemote::HandlePacket_SetAsyncEnableProfiling, NULL, "QSetAsyncEnableProfiling", "Enable or disable the profiling of current target."));
+ t.push_back (Packet (set_enable_profiling, &RNBRemote::HandlePacket_SetEnableAsyncProfiling, NULL, "QSetEnableAsyncProfiling", "Enable or disable the profiling of current target."));
t.push_back (Packet (watchpoint_support_info, &RNBRemote::HandlePacket_WatchpointSupportInfo, NULL, "qWatchpointSupportInfo", "Return the number of supported hardware watchpoints"));
}
@@ -3512,15 +3512,15 @@ RNBRemote::HandlePacket_GetProfileData (const char *p)
}
-// QSetAsyncEnableProfiling;enable:[0|1]:interval_usec:XXXXXX;
+// QSetEnableAsyncProfiling;enable:[0|1]:interval_usec:XXXXXX;
rnb_err_t
-RNBRemote::HandlePacket_SetAsyncEnableProfiling (const char *p)
+RNBRemote::HandlePacket_SetEnableAsyncProfiling (const char *p)
{
nub_process_t pid = m_ctx.ProcessID();
if (pid == INVALID_NUB_PROCESS)
return SendPacket ("");
- StringExtractor packet(p += sizeof ("QSetAsyncEnableProfiling:") - 1);
+ StringExtractor packet(p += sizeof ("QSetEnableAsyncProfiling:") - 1);
bool enable = false;
uint64_t interval_usec = 0;
std::string name;
@@ -3541,7 +3541,7 @@ RNBRemote::HandlePacket_SetAsyncEnableProfiling (const char *p)
{
enable = 0;
}
- DNBProcessSetAsyncEnableProfiling(pid, enable, interval_usec);
+ DNBProcessSetEnableAsyncProfiling(pid, enable, interval_usec);
return SendPacket ("OK");
}
diff --git a/lldb/tools/debugserver/source/RNBRemote.h b/lldb/tools/debugserver/source/RNBRemote.h
index 8ea470ef316..611441b02aa 100644
--- a/lldb/tools/debugserver/source/RNBRemote.h
+++ b/lldb/tools/debugserver/source/RNBRemote.h
@@ -114,7 +114,7 @@ public:
sync_thread_state, // 'QSyncThreadState:'
memory_region_info, // 'qMemoryRegionInfo:'
get_profile_data, // 'qGetProfileData'
- set_enable_profiling, // 'QSetAsyncEnableProfiling'
+ set_enable_profiling, // 'QSetEnableAsyncProfiling'
watchpoint_support_info, // 'qWatchpointSupportInfo:'
allocate_memory, // '_M'
deallocate_memory, // '_m'
@@ -215,7 +215,7 @@ public:
rnb_err_t HandlePacket_DeallocateMemory (const char *p);
rnb_err_t HandlePacket_MemoryRegionInfo (const char *p);
rnb_err_t HandlePacket_GetProfileData(const char *p);
- rnb_err_t HandlePacket_SetAsyncEnableProfiling(const char *p);
+ rnb_err_t HandlePacket_SetEnableAsyncProfiling(const char *p);
rnb_err_t HandlePacket_WatchpointSupportInfo (const char *p);
rnb_err_t HandlePacket_stop_process (const char *p);
OpenPOWER on IntegriCloud