@@ -3171,15 +3171,19 @@ class CommandObjectTargetModulesList : public CommandObjectParsed {
3171
3171
3172
3172
case ' r' : {
3173
3173
size_t ref_count = 0 ;
3174
+ char in_shared_cache = ' Y' ;
3175
+
3174
3176
ModuleSP module_sp (module ->shared_from_this ());
3177
+ if (!ModuleList::ModuleIsInCache (module ))
3178
+ in_shared_cache = ' N' ;
3175
3179
if (module_sp) {
3176
3180
// Take one away to make sure we don't count our local "module_sp"
3177
3181
ref_count = module_sp.use_count () - 1 ;
3178
3182
}
3179
3183
if (width)
3180
- strm.Printf (" {%*" PRIu64 " }" , width, (uint64_t )ref_count);
3184
+ strm.Printf (" {%c % *" PRIu64 " }" , in_shared_cache , width, (uint64_t )ref_count);
3181
3185
else
3182
- strm.Printf (" {%" PRIu64 " }" , (uint64_t )ref_count);
3186
+ strm.Printf (" {%c % " PRIu64 " }" , in_shared_cache , (uint64_t )ref_count);
3183
3187
} break ;
3184
3188
3185
3189
case ' s' :
@@ -4319,11 +4323,8 @@ class CommandObjectTargetSymbolsAdd : public CommandObjectParsed {
4319
4323
4320
4324
ModuleSpec module_spec;
4321
4325
module_spec.GetUUID () = frame_module_sp->GetUUID ();
4322
-
4323
- if (FileSystem::Instance ().Exists (frame_module_sp->GetPlatformFileSpec ())) {
4324
- module_spec.GetArchitecture () = frame_module_sp->GetArchitecture ();
4325
- module_spec.GetFileSpec () = frame_module_sp->GetPlatformFileSpec ();
4326
- }
4326
+ module_spec.GetArchitecture () = frame_module_sp->GetArchitecture ();
4327
+ module_spec.GetFileSpec () = frame_module_sp->GetPlatformFileSpec ();
4327
4328
4328
4329
if (!DownloadObjectAndSymbolFile (module_spec, result, flush)) {
4329
4330
result.AppendError (" unable to find debug symbols for the current frame" );
@@ -4368,12 +4369,8 @@ class CommandObjectTargetSymbolsAdd : public CommandObjectParsed {
4368
4369
4369
4370
ModuleSpec module_spec;
4370
4371
module_spec.GetUUID () = frame_module_sp->GetUUID ();
4371
-
4372
- if (FileSystem::Instance ().Exists (
4373
- frame_module_sp->GetPlatformFileSpec ())) {
4374
- module_spec.GetArchitecture () = frame_module_sp->GetArchitecture ();
4375
- module_spec.GetFileSpec () = frame_module_sp->GetPlatformFileSpec ();
4376
- }
4372
+ module_spec.GetFileSpec () = frame_module_sp->GetPlatformFileSpec ();
4373
+ module_spec.GetArchitecture () = frame_module_sp->GetArchitecture ();
4377
4374
4378
4375
bool current_frame_flush = false ;
4379
4376
if (DownloadObjectAndSymbolFile (module_spec, result, current_frame_flush))
0 commit comments