From cb9fd5b773b25473770b5ddda53b0a2e9f4c7703 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Fri, 8 Sep 2006 18:03:56 +0000 Subject: Make SourceLineResolver use RangeMap (#13). r=bryner - Eliminate MemAddrMap from source_line_resolver.cc and adapt it to use RangeMap, also used by minidump.cc. - RangeMap operates on both a base address and a size, where MemAddrMap only used a base address, so the dumped symbol file format is modified to include size information. dump_syms produces these files and SourceLineResolver consumes them. - Provide updated test data conforming to the new dumped symbol format. http://groups.google.com/group/airbag-dev/browse_thread/thread/e9403cf3ad6336a1 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@21 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/range_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/processor/range_map.h') diff --git a/src/processor/range_map.h b/src/processor/range_map.h index c693aa6e..e05c7981 100644 --- a/src/processor/range_map.h +++ b/src/processor/range_map.h @@ -49,7 +49,7 @@ class RangeMap { // Locates the range encompassing the supplied address. If there is // no such range, or if there is a parameter error, returns false. - bool RetrieveRange(const AddressType& address, EntryType* entry); + bool RetrieveRange(const AddressType& address, EntryType* entry) const; // Empties the range map, restoring it to the state it was when it was // initially created. @@ -125,7 +125,7 @@ bool RangeMap::StoreRange(const AddressType& base, template bool RangeMap::RetrieveRange( const AddressType& address, - EntryType* entry) { + EntryType* entry) const { if (!entry) return false; -- cgit v1.2.1