diff options
-rw-r--r-- | src/common/windows/pdb_source_line_writer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/windows/pdb_source_line_writer.cc b/src/common/windows/pdb_source_line_writer.cc index e8684634..071940d6 100644 --- a/src/common/windows/pdb_source_line_writer.cc +++ b/src/common/windows/pdb_source_line_writer.cc @@ -151,6 +151,11 @@ bool PDBSourceLineWriter::PrintFunction(IDiaSymbol *function) { return false; } + if (length == 0) { + // Silently ignore zero-length functions, which can infrequently pop up. + return true; + } + CComBSTR name; int stack_param_size; if (!GetSymbolFunctionName(function, &name, &stack_param_size)) { |