aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows/pdb_source_line_writer.cc
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-03-22 21:10:30 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-03-22 21:10:30 +0000
commit6bc866cc82cdf0ca37f6467f970413c2d2577d45 (patch)
tree25849412b386163111721c005327828aacbd9f36 /src/common/windows/pdb_source_line_writer.cc
parentissue 134: reduce timeout period for minidump upload : reviwer waylonis (diff)
downloadbreakpad-6bc866cc82cdf0ca37f6467f970413c2d2577d45.tar.xz
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
Diffstat (limited to 'src/common/windows/pdb_source_line_writer.cc')
-rw-r--r--src/common/windows/pdb_source_line_writer.cc5
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)) {