@@ -185,7 +185,7 @@ bool LLDBMemoryReader::readBytes(swift::remote::RemoteAddress address,
185
185
llvm::Optional<Address> maybeAddr =
186
186
resolveRemoteAddress (address.getAddressData ());
187
187
if (!maybeAddr) {
188
- LLDB_LOGV (log, " [MemoryReader] could not resolve address {1 :x}" ,
188
+ LLDB_LOGV (log, " [MemoryReader] could not resolve address {0 :x}" ,
189
189
address.getAddressData ());
190
190
return false ;
191
191
}
@@ -230,13 +230,13 @@ bool LLDBMemoryReader::readString(swift::remote::RemoteAddress address,
230
230
std::string &dest) {
231
231
Log *log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_TYPES));
232
232
233
- LLDB_LOGV (log, " [MemoryReader] asked to read string data at address {0x }" ,
233
+ LLDB_LOGV (log, " [MemoryReader] asked to read string data at address {0:x }" ,
234
234
address.getAddressData ());
235
235
236
236
llvm::Optional<Address> maybeAddr =
237
237
resolveRemoteAddress (address.getAddressData ());
238
238
if (!maybeAddr) {
239
- LLDB_LOGV (log, " [MemoryReader] could not resolve address {1 :x}" ,
239
+ LLDB_LOGV (log, " [MemoryReader] could not resolve address {0 :x}" ,
240
240
address.getAddressData ());
241
241
return false ;
242
242
}
@@ -348,9 +348,9 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
348
348
// If the address is larger than anything we have mapped the address is out
349
349
if (pair_iterator == m_range_module_map.end ()) {
350
350
LLDB_LOG (log,
351
- " [MemoryReader] Address {1 :x} is larger than the upper bound "
352
- " address of the mapped in modules" ,
353
- address);
351
+ " [MemoryReader] Address {0 :x} is larger than the upper bound "
352
+ " address of the mapped in modules" ,
353
+ address);
354
354
return {};
355
355
}
356
356
@@ -365,8 +365,8 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
365
365
file_address = address - std::prev (pair_iterator)->first ;
366
366
367
367
LLDB_LOGV (log,
368
- " [MemoryReader] Successfully resolved mapped address {1 :x} "
369
- " into file address {1:x}" ,
368
+ " [MemoryReader] Successfully resolved mapped address {0 :x} into "
369
+ " file address {1:x}" ,
370
370
address, file_address);
371
371
auto *object_file = module ->GetObjectFile ();
372
372
if (!object_file)
@@ -375,16 +375,16 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
375
375
Address resolved (file_address, object_file->GetSectionList ());
376
376
if (!resolved.IsValid ()) {
377
377
LLDB_LOG (log,
378
- " [MemoryReader] Could not make a real address out of file "
379
- " address {1 :x} and object file {}" ,
378
+ " [MemoryReader] Could not make a real address out of file address "
379
+ " {0 :x} and object file {1 }" ,
380
380
file_address, object_file->GetFileSpec ().GetFilename ());
381
381
return {};
382
382
}
383
383
384
384
LLDB_LOGV (log,
385
- " [MemoryReader] Unsuccessfully resolved mapped address {1 :x} "
386
- " into file address {1:x}" ,
387
- address, address );
385
+ " [MemoryReader] Successfully resolved mapped address {0 :x} into "
386
+ " file address {1:x}" ,
387
+ address, resolved. GetFileAddress () );
388
388
return resolved;
389
389
}
390
390
0 commit comments