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

Issue 114610045: Add a SectionOffsetAddress class. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by fdoray
Modified:
9 years, 9 months ago
CC:
sawbuck-changes_googlegroups.com
Base URL:
http://sawbuck.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add a SectionOffsetAddress class. Pdb files contain address represented as segment/offset pairs. This CL introduces a class to encapsulate this concept. It has the same interface as AddressImpl, except for the operator- that accepts another address of the same type. The class is a lightweight wrapper for 2 integers, which can be freely copied. BUG= R=chrisha@chromium.org Committed: https://code.google.com/p/sawbuck/source/detail?r=2224

Patch Set 1 #

Patch Set 2 : Nits. #

Patch Set 3 : New implementation, in core/*. #

Patch Set 4 : Nits. #

Total comments: 16

Patch Set 5 : Nits from Chris. #

Patch Set 6 : More nits. #

Patch Set 7 : More nits. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -1 line) Patch
M syzygy/core/core.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A syzygy/core/section_offset_address.h View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
A syzygy/core/section_offset_address.cc View 1 2 3 4 5 6 1 chunk +188 lines, -0 lines 0 comments Download
A syzygy/core/section_offset_address_unittest.cc View 1 2 3 4 5 1 chunk +200 lines, -0 lines 0 comments Download
M syzygy/experimental/pdb_writer/symbol.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9
fdoray
Could you review this CL? I've not found other representations of a segment/offset in the ...
9 years, 9 months ago (2014-07-31 19:32:08 UTC) #1
chrisha
Take a look at core/address.h. On Thu, Jul 31, 2014 at 3:32 PM, <fdoray@chromium.org> wrote: ...
9 years, 9 months ago (2014-07-31 20:33:31 UTC) #2
fdoray
Do you suggest that I move my code to core/*? I could use a template ...
9 years, 9 months ago (2014-07-31 20:48:13 UTC) #3
chrisha
Yeah, that's the route I'd try first. Otherwise I'd simply define a SectionOffsetAddress class directly, ...
9 years, 9 months ago (2014-07-31 21:44:36 UTC) #4
fdoray
Could you take another look? A SectionOffsetAddress has the same methods as an AddressImpl, modulo: ...
9 years, 9 months ago (2014-08-01 18:49:36 UTC) #5
chrisha
Care to update your CL description and title while you're at it? https://codereview.appspot.com/114610045/diff/60001/syzygy/core/section_offset_address.cc File syzygy/core/section_offset_address.cc ...
9 years, 9 months ago (2014-08-01 19:32:23 UTC) #6
fdoray
All done. Could you take another look? Thanks! https://codereview.appspot.com/114610045/diff/60001/syzygy/core/section_offset_address.cc File syzygy/core/section_offset_address.cc (right): https://codereview.appspot.com/114610045/diff/60001/syzygy/core/section_offset_address.cc#newcode1 syzygy/core/section_offset_address.cc:1: // ...
9 years, 9 months ago (2014-08-04 18:45:26 UTC) #7
chrisha
lgtm!
9 years, 9 months ago (2014-08-04 20:04:32 UTC) #8
fdoray
9 years, 9 months ago (2014-08-04 21:18:37 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 manually as 2224.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b