mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-3664: Quick-Fix Debugger module mapper with shared projects.
This commit is contained in:
parent
07b664bbbf
commit
e71a56e827
4 changed files with 24 additions and 5 deletions
|
@ -76,8 +76,8 @@ public class DefaultProject implements Project {
|
|||
*
|
||||
* @param projectManager the manager of this project
|
||||
* @param projectLocator location and name of project
|
||||
* @param repository shared repository associated with the new project. Can
|
||||
* be null for non-shared projects
|
||||
* @param repository shared repository associated with the new project. Can be null for
|
||||
* non-shared projects
|
||||
* @throws IOException if I/O error occurs.
|
||||
* @throws LockException if unable to establish project lock
|
||||
*/
|
||||
|
@ -684,7 +684,17 @@ public class DefaultProject implements Project {
|
|||
if (projectLocator.getURL().equals(url)) {
|
||||
return fileMgr;
|
||||
}
|
||||
return otherViews.get(url);
|
||||
URL remoteURL = getProjectData().getRootFolder().getSharedProjectURL();
|
||||
if (remoteURL != null) {
|
||||
remoteURL = GhidraURL.getProjectURL(url);
|
||||
}
|
||||
if (remoteURL.equals(url)) {
|
||||
return fileMgr;
|
||||
}
|
||||
|
||||
synchronized (otherViews) {
|
||||
return otherViews.get(url);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue