diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-09-08 18:03:56 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-09-08 18:03:56 +0000 |
commit | cb9fd5b773b25473770b5ddda53b0a2e9f4c7703 (patch) | |
tree | 63dfc29a69f9528034335a9ac7407fe5d4e59865 /src/processor/range_map.h | |
parent | Change interface for providing files to Minidump (#19). r=bryner (diff) | |
download | breakpad-cb9fd5b773b25473770b5ddda53b0a2e9f4c7703.tar.xz |
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
Diffstat (limited to 'src/processor/range_map.h')
-rw-r--r-- | src/processor/range_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<AddressType, EntryType>::StoreRange(const AddressType& base, template<typename AddressType, typename EntryType> bool RangeMap<AddressType, EntryType>::RetrieveRange( const AddressType& address, - EntryType* entry) { + EntryType* entry) const { if (!entry) return false; |