@@ -1254,8 +1254,6 @@ void StructuredDataDarwinLog::ModulesDidLoad(Process &process,
1254
1254
return ;
1255
1255
}
1256
1256
1257
- const ConstString logging_module_name = ConstString (logging_module_cstr);
1258
-
1259
1257
// We need to see libtrace in the list of modules before we can enable
1260
1258
// tracing for the target process.
1261
1259
bool found_logging_support_module = false ;
@@ -1266,7 +1264,7 @@ void StructuredDataDarwinLog::ModulesDidLoad(Process &process,
1266
1264
1267
1265
auto &file_spec = module_sp->GetFileSpec ();
1268
1266
found_logging_support_module =
1269
- (file_spec.GetFilename () == logging_module_name );
1267
+ (file_spec.GetFilename () == logging_module_cstr );
1270
1268
if (found_logging_support_module)
1271
1269
break ;
1272
1270
}
@@ -1276,8 +1274,7 @@ void StructuredDataDarwinLog::ModulesDidLoad(Process &process,
1276
1274
" StructuredDataDarwinLog::%s logging module %s "
1277
1275
" has not yet been loaded, can't set a breakpoint "
1278
1276
" yet (process uid %u)" ,
1279
- __FUNCTION__, logging_module_name.AsCString (),
1280
- process.GetUniqueID ());
1277
+ __FUNCTION__, logging_module_cstr, process.GetUniqueID ());
1281
1278
return ;
1282
1279
}
1283
1280
@@ -1287,8 +1284,7 @@ void StructuredDataDarwinLog::ModulesDidLoad(Process &process,
1287
1284
LLDB_LOGF (log,
1288
1285
" StructuredDataDarwinLog::%s post-init hook breakpoint "
1289
1286
" set for logging module %s (process uid %u)" ,
1290
- __FUNCTION__, logging_module_name.AsCString (),
1291
- process.GetUniqueID ());
1287
+ __FUNCTION__, logging_module_cstr, process.GetUniqueID ());
1292
1288
1293
1289
// We need to try the enable here as well, which will succeed in the event
1294
1290
// that we're attaching to (rather than launching) the process and the
0 commit comments