Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Issue 23001: Breakpad: Don't use the deprecated __gnu_cxx::hash_map container. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years ago by jimb
Modified:
16 years ago
Reviewers:
mochalatte
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

Modern GNU compilers warn about the #inclusion of <ext/hash_map>; that
container is deprecated, and code should use <tr1/unordered_map>
instead.  However, to stay within the boundaries of C++ '98, it's
probably fine just to use plain old std::map.

Breakpad uses hash_map in three cases:

o The DWARF reader's SectionMap type maps object file section names to
  data.  This map is consulted once per section kind per DWARF
  compilation unit; it is not performance-critical.

o The Mac dump_syms tool uses it to map machine architectures to
  section maps in Universal binaries.  It's hard to imagine there
  ever being more than two entries in such a map.

o The processor's BasicSourceLineResolver uses a hash_map to map file
  numbers to file names.  This is the map that will probably have the
  most entries, but it's only accessed once per frame, after we've
  found the frame's line entry.

Committed: r393

Patch Set 1 #

Patch Set 2 : Breakpad: Don't use the deprecated __gnu_cxx::hash_map container. #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/common/mac/dump_syms.h View 1 chunk +1 line, -1 line 0 comments Download
M src/common/mac/dump_syms.mm View 1 chunk +0 lines, -9 lines 0 comments Download
M src/common/mac/dwarf/dwarf2reader.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M src/common/mac/dwarf/dwarf2reader.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/common/mac/dwarf/functioninfo.cc View 1 1 chunk +0 lines, -21 lines 0 comments Download
M src/google_breakpad/processor/basic_source_line_resolver.h View 2 chunks +0 lines, -24 lines 0 comments Download
M src/processor/basic_source_line_resolver.cc View 3 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 4
mochalatte
LGTM
16 years ago #1
jimb
On 2009/08/20 22:34:00, mochalatte wrote: > LGTM Expanded to remove all uses of hash_map from ...
16 years ago #2
jimb
On 2009/08/21 18:47:03, jimb wrote: > On 2009/08/20 22:34:00, mochalatte wrote: > > LGTM > ...
16 years ago #3
mochalatte
16 years ago #4
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted