aboutsummaryrefslogtreecommitdiff
path: root/src/google_breakpad/processor/network_source_line_resolver.h
diff options
context:
space:
mode:
authorSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-01 17:31:31 +0000
committerSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-01 17:31:31 +0000
commita8c1c466a16ad4c85bfd1ca20ab8fc056d669abe (patch)
treea2125b96e08b34b828364885d9cd52845a1eff93 /src/google_breakpad/processor/network_source_line_resolver.h
parentAdd missing module_serializer.h and module_serializer.cc for class ModuleSeri... (diff)
downloadbreakpad-a8c1c466a16ad4c85bfd1ca20ab8fc056d669abe.tar.xz
Restrict ownership of symbol data buffers to symbol supplier.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@721 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/google_breakpad/processor/network_source_line_resolver.h')
-rw-r--r--src/google_breakpad/processor/network_source_line_resolver.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/google_breakpad/processor/network_source_line_resolver.h b/src/google_breakpad/processor/network_source_line_resolver.h
index f60ff701..138b2f56 100644
--- a/src/google_breakpad/processor/network_source_line_resolver.h
+++ b/src/google_breakpad/processor/network_source_line_resolver.h
@@ -84,6 +84,10 @@ class NetworkSourceLineResolver : public SourceLineResolverInterface,
virtual bool LoadModuleUsingMemoryBuffer(const CodeModule *module,
char *memory_buffer);
+ // It doesn't matter whether returns true or false, since no memory buffer
+ // will be allocated in GetCStringSymbolData().
+ virtual bool ShouldDeleteMemoryBufferAfterLoadModule() { return true; }
+
void UnloadModule(const CodeModule *module);
virtual bool HasModule(const CodeModule *module);
@@ -112,6 +116,11 @@ class NetworkSourceLineResolver : public SourceLineResolverInterface,
string *symbol_file,
char **symbol_data);
+ // Delete the data buffer allocated in GetCStringSymbolData().
+ // Since the above GetCStringSymbolData() won't allocate any memory at all,
+ // this method is no-op.
+ virtual void FreeSymbolData(const CodeModule *module) { }
+
private:
int wait_milliseconds_;
// if false, some part of our network setup failed.