From 6bc866cc82cdf0ca37f6467f970413c2d2577d45 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Thu, 22 Mar 2007 21:10:30 +0000 Subject: Don't output FUNC lines for 0-length functions (#139). r=bryner http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/c684520587356ec3 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@129 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/windows/pdb_source_line_writer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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)) { -- cgit v1.2.1