forked from OSchip/llvm-project
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:
parent
5543abb036
commit
91e468c0ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue