diff options
author | SiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-11-01 17:31:31 +0000 |
---|---|---|
committer | SiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-11-01 17:31:31 +0000 |
commit | a8c1c466a16ad4c85bfd1ca20ab8fc056d669abe (patch) | |
tree | a2125b96e08b34b828364885d9cd52845a1eff93 /src/google_breakpad/processor/fast_source_line_resolver.h | |
parent | Add missing module_serializer.h and module_serializer.cc for class ModuleSeri... (diff) | |
download | breakpad-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/fast_source_line_resolver.h')
-rw-r--r-- | src/google_breakpad/processor/fast_source_line_resolver.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/google_breakpad/processor/fast_source_line_resolver.h b/src/google_breakpad/processor/fast_source_line_resolver.h index 4bb74f1a..60f6dfce 100644 --- a/src/google_breakpad/processor/fast_source_line_resolver.h +++ b/src/google_breakpad/processor/fast_source_line_resolver.h @@ -84,18 +84,10 @@ class FastSourceLineResolver : public SourceLineResolverBase { // Deserialize raw memory data to construct a WindowsFrameInfo object. static WindowsFrameInfo CopyWFI(const char *raw_memory); - // Helper methods to manage C-String format symbol data. - // See "google_breakpad/processor/source_line_resolver_base.h" for more - // comments about these helper methods. - virtual void StoreDataBeforeLoad(const CodeModule *module, char *symbol_data); - virtual void DeleteDataUnload(const CodeModule *module); - virtual void ClearLocalMemory(); - // No-op helper method. - virtual void DeleteDataAfterLoad(char *symbol_data) { } - - // Store memory data allocated in LoadModule and LoadModuleUsingMapBuffer. - typedef std::map<string, char*, CompareString> MemoryMap; - MemoryMap memory_chunks_; + // FastSourceLineResolver requires the memory buffer stays alive during the + // lifetime of a corresponding module, therefore it needs to redefine this + // virtual method. + virtual bool ShouldDeleteMemoryBufferAfterLoadModule(); // Disallow unwanted copy ctor and assignment operator FastSourceLineResolver(const FastSourceLineResolver&); |