diff --git a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp --- a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp +++ b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp @@ -496,6 +496,7 @@ CurrentGsym = GsymReader::openFile(GSYMPath); if (!*CurrentGsym) error(GSYMPath, CurrentGsym->takeError()); + CurrentGSYMPath = GSYMPath; } uint64_t Addr;