summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2016-07-06 16:40:09 +0000
committerTamas Berghammer <tberghammer@google.com>2016-07-06 16:40:09 +0000
commitdba6503a9be78f0f1ff140220b9c4bf684de69d4 (patch)
tree59f293f52497ed0b7575b00683949d76ad65139e /lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
parent65c00a2b3e123d2fefca72751b9e73b3f245a066 (diff)
downloadbcm5719-llvm-dba6503a9be78f0f1ff140220b9c4bf684de69d4.tar.gz
bcm5719-llvm-dba6503a9be78f0f1ff140220b9c4bf684de69d4.zip
Add oat symbolization support for odex files
Differential revision: http://reviews.llvm.org/D22040 llvm-svn: 274635
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp')
-rw-r--r--lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
index 10594cfe92f..887b2343568 100644
--- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
+++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
@@ -317,8 +317,9 @@ PlatformAndroid::DownloadSymbolFile (const lldb::ModuleSP& module_sp,
const FileSpec& dst_file_spec)
{
// For oat file we can try to fetch additional debug info from the device
- if (module_sp->GetFileSpec().GetFileNameExtension() != ConstString("oat"))
- return Error("Symbol file downloading only supported for oat files");
+ ConstString extension = module_sp->GetFileSpec().GetFileNameExtension();
+ if (extension != ConstString("oat") && extension != ConstString("odex"))
+ return Error("Symbol file downloading only supported for oat and odex files");
// If we have no information about the platform file we can't execute oatdump
if (!module_sp->GetPlatformFileSpec())
OpenPOWER on IntegriCloud