summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/DNB.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-01 22:45:40 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-01 22:45:40 +0000
commit3c14438fe87660578c39533e388f7938fb2b8625 (patch)
treeca5f7688456d0590539f094e933af4e2e3ae8acb /lldb/tools/debugserver/source/DNB.cpp
parent7cfe7679aa9741900a56cd84ef4453067d3a0560 (diff)
downloadbcm5719-llvm-3c14438fe87660578c39533e388f7938fb2b8625.tar.gz
bcm5719-llvm-3c14438fe87660578c39533e388f7938fb2b8625.zip
Fixed 32 bit debugging after recent architecture changes to debugserver.
llvm-svn: 120618
Diffstat (limited to 'lldb/tools/debugserver/source/DNB.cpp')
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index 17a17d32f0d..516e0cd8c8e 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -2019,3 +2019,18 @@ void
DNBTerminate()
{
}
+
+nub_bool_t
+DNBSetArchitecture (const char *arch)
+{
+ if (arch && arch[0])
+ {
+ if (strcasecmp (arch, "i386") == 0)
+ return DNBArchProtocol::SetArchitecture (CPU_TYPE_I386);
+ else if (strcasecmp (arch, "x86_64") == 0)
+ return DNBArchProtocol::SetArchitecture (CPU_TYPE_X86_64);
+ else if (strstr (arch, "arm") == arch)
+ return DNBArchProtocol::SetArchitecture (CPU_TYPE_ARM);
+ }
+ return false;
+}
OpenPOWER on IntegriCloud