Index: source/Breakpoint/Breakpoint.cpp =================================================================== --- source/Breakpoint/Breakpoint.cpp +++ source/Breakpoint/Breakpoint.cpp @@ -876,25 +876,18 @@ { s->Printf ("no locations (pending)."); } - else if (num_locations == 1) + else if (num_locations == 1 && show_locations == false) { - // If there is one location only, we'll just print that location information. But don't do this if - // show locations is true, then that will be handled below. - if (show_locations == false) - { - GetLocationAtIndex(0)->GetDescription(s, level); - } - else - { - s->Printf ("%zd locations.", num_locations); - } + // There is only one location, so we'll just print that location information. + GetLocationAtIndex(0)->GetDescription(s, level); } else { - s->Printf ("%zd locations.", num_locations); + s->Printf ("%" PRIu64 " locations.", static_cast(num_locations)); } s->EOL(); break; + case lldb::eDescriptionLevelVerbose: // Verbose mode does a debug dump of the breakpoint Dump (s); Index: source/Core/SearchFilter.cpp =================================================================== --- source/Core/SearchFilter.cpp +++ source/Core/SearchFilter.cpp @@ -816,7 +816,7 @@ } else if (num_modules > 0) { - s->Printf (", modules(%zd) = ", num_modules); + s->Printf (", modules(%" PRIu64 ") = ", static_cast(num_modules)); for (size_t i = 0; i < num_modules; i++) { if (s->GetVerbose()) Index: source/Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp =================================================================== --- source/Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp +++ source/Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp @@ -250,7 +250,7 @@ (uint64_t)return_addr); for (size_t i = 0; i < args.size(); ++i) - s.Printf (", arg%zd = 0x%" PRIx64, i + 1, args[i]); + s.Printf (", arg%" PRIu64 " = 0x%" PRIx64, static_cast(i + 1), args[i]); s.PutCString (")"); log->PutCString(s.GetString().c_str()); } @@ -268,7 +268,7 @@ { reg_info = reg_ctx->GetRegisterInfo(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_ARG1 + i); if (log) - log->Printf("About to write arg%zd (0x%" PRIx64 ") into %s", i + 1, args[i], reg_info->name); + log->Printf("About to write arg%" PRIu64 " (0x%" PRIx64 ") into %s", static_cast(i + 1), args[i], reg_info->name); if (!reg_ctx->WriteRegisterFromUnsigned(reg_info, args[i])) return false; } Index: source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp =================================================================== --- source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp +++ source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp @@ -250,7 +250,7 @@ (uint64_t)return_addr); for (size_t i = 0; i < args.size(); ++i) - s.Printf (", arg%zd = 0x%" PRIx64, i + 1, args[i]); + s.Printf (", arg%" PRIu64 " = 0x%" PRIx64, static_cast(i + 1), args[i]); s.PutCString (")"); log->PutCString(s.GetString().c_str()); } @@ -268,7 +268,7 @@ { reg_info = reg_ctx->GetRegisterInfo(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_ARG1 + i); if (log) - log->Printf("About to write arg%zd (0x%" PRIx64 ") into %s", i + 1, args[i], reg_info->name); + log->Printf("About to write arg%" PRIu64 " (0x%" PRIx64 ") into %s", static_cast(i + 1), args[i], reg_info->name); if (!reg_ctx->WriteRegisterFromUnsigned(reg_info, args[i])) return false; } Index: source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp =================================================================== --- source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp +++ source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp @@ -318,7 +318,7 @@ (uint64_t)return_addr); for (size_t i = 0; i < args.size(); ++i) - s.Printf (", arg%zd = 0x%" PRIx64, i + 1, args[i]); + s.Printf (", arg%" PRIu64 " = 0x%" PRIx64, static_cast(i + 1), args[i]); s.PutCString (")"); log->PutCString(s.GetString().c_str()); } @@ -336,7 +336,7 @@ { reg_info = reg_ctx->GetRegisterInfo(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_ARG1 + i); if (log) - log->Printf("About to write arg%zd (0x%" PRIx64 ") into %s", i + 1, args[i], reg_info->name); + log->Printf("About to write arg%" PRIu64 " (0x%" PRIx64 ") into %s", static_cast(i + 1), args[i], reg_info->name); if (!reg_ctx->WriteRegisterFromUnsigned(reg_info, args[i])) return false; } Index: tools/driver/Driver.cpp =================================================================== --- tools/driver/Driver.cpp +++ tools/driver/Driver.cpp @@ -882,9 +882,9 @@ ssize_t nrwr = write(fds[WRITE], commands_data, commands_size); if (nrwr < 0) { - fprintf(stderr, "error: write(%i, %p, %zd) failed (errno = %i) " + fprintf(stderr, "error: write(%i, %p, %" PRIu64 ") failed (errno = %i) " "when trying to open LLDB commands pipe\n", - fds[WRITE], commands_data, commands_size, errno); + fds[WRITE], commands_data, static_cast(commands_size), errno); success = false; } else if (static_cast(nrwr) == commands_size)