diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-08-20 04:29:46 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-08-20 04:29:46 +0000 |
commit | 91e468c0ce5ca576295a9d0b12c68b151e38a0d4 (patch) | |
tree | 67bcb80cdfd6aa790dcd6575cb73d96b17eaebcc /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 5543abb0363c4228fd025de641e1535d29a17eae (diff) | |
download | bcm5719-llvm-91e468c0ce5ca576295a9d0b12c68b151e38a0d4.tar.gz bcm5719-llvm-91e468c0ce5ca576295a9d0b12c68b151e38a0d4.zip |
If the filename specified by plugin.process.gdb-remote.target-definition-file,
doesn't exist, see if it needs tilde expansion before we ignore it completely.
llvm-svn: 245537
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index ed660238375..798aa4b6a27 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -525,6 +525,11 @@ ProcessGDBRemote::BuildDynamicRegisterInfo (bool force) // 3 - Fall back on the qRegisterInfo packets. FileSpec target_definition_fspec = GetGlobalPluginProperties()->GetTargetDefinitionFile (); + if (!target_definition_fspec.Exists()) + { + // If the filename doesn't exist, it may be a ~ not having been expanded - try to resolve it. + target_definition_fspec.ResolvePath(); + } if (target_definition_fspec) { // See if we can get register definitions from a python file |