diff --git a/tools/pagemap_parse/pagemap_parse.cpp b/tools/pagemap_parse/pagemap_parse.cpp index 4952250ab..1411e3d28 100644 --- a/tools/pagemap_parse/pagemap_parse.cpp +++ b/tools/pagemap_parse/pagemap_parse.cpp @@ -95,7 +95,7 @@ int ParseMapsLine(const string& line, MapInfo& mapping) return -1; } // 读取文件路径 - if (!(iss >> mapping.pathname)) { + if (getline(iss, mapping.pathname)) { mapping.pathname = "[anno]"; }; return 0;