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
This commit is contained in:
Jason Molenda 2015-08-20 04:29:46 +00:00
parent 5543abb036
commit 91e468c0ce
1 changed files with 5 additions and 0 deletions

View File

@ -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