aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-25 00:41:25 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-25 00:41:25 +0000
commita453cc24f431a3323fee6799c6d8e8bef653a8e4 (patch)
treed180f6a6e4d618acf246ecf5857f75c40673a59c /src/common
parentAdding process_state protobuf and derived C++ files. Included README as well. (diff)
downloadbreakpad-a453cc24f431a3323fee6799c6d8e8bef653a8e4.tar.xz
Commit issue 140001: fixes for 64-bit build cleanups.
a=dmaclach, r=jimb git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@664 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dwarf/bytereader.cc8
-rw-r--r--src/common/dwarf/bytereader.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/common/dwarf/bytereader.cc b/src/common/dwarf/bytereader.cc
index 8721b7a5..fb0024d3 100644
--- a/src/common/dwarf/bytereader.cc
+++ b/src/common/dwarf/bytereader.cc
@@ -123,11 +123,11 @@ uint64 ByteReader::ReadEncodedPointer(const char *buffer,
// First, find the offset to START from the closest prior aligned
// address.
- size_t skew = section_base_ & (AddressSize() - 1);
+ uint64_t skew = section_base_ & (AddressSize() - 1);
// Now find the offset from that aligned address to buffer.
- off_t offset = skew + (buffer - buffer_base_);
+ uint64_t offset = skew + (buffer - buffer_base_);
// Round up to the next boundary.
- size_t aligned = (offset + AddressSize() - 1) & -AddressSize();
+ uint64_t aligned = (offset + AddressSize() - 1) & -AddressSize();
// Convert back to a pointer.
const char *aligned_buffer = buffer_base_ + (aligned - skew);
// Finally, store the length and actually fetch the pointer.
@@ -156,7 +156,7 @@ uint64 ByteReader::ReadEncodedPointer(const char *buffer,
case DW_EH_PE_uleb128:
offset = ReadUnsignedLEB128(buffer, len);
break;
-
+
case DW_EH_PE_udata2:
offset = ReadTwoBytes(buffer);
*len = 2;
diff --git a/src/common/dwarf/bytereader.h b/src/common/dwarf/bytereader.h
index f01f319d..206b13a5 100644
--- a/src/common/dwarf/bytereader.h
+++ b/src/common/dwarf/bytereader.h
@@ -85,7 +85,7 @@ class ByteReader {
//
// - If N is between 0 and 0x7f, then its unsigned LEB128
// representation is a single byte whose value is N.
- //
+ //
// - Otherwise, its unsigned LEB128 representation is (N & 0x7f) |
// 0x80, followed by the unsigned LEB128 representation of N /
// 128, rounded towards negative infinity.
@@ -104,7 +104,7 @@ class ByteReader {
// - If N is between -0x40 and 0x3f, then its signed LEB128
// representation is a single byte whose value is N in two's
// complement.
- //
+ //
// - Otherwise, its signed LEB128 representation is (N & 0x7f) |
// 0x80, followed by the signed LEB128 representation of N / 128,
// rounded towards negative infinity.
@@ -301,7 +301,7 @@ class ByteReader {
// Base addresses for Linux C++ exception handling data's encoded pointers.
bool have_section_base_, have_text_base_, have_data_base_;
bool have_function_base_;
- size_t section_base_, text_base_, data_base_, function_base_;
+ uint64_t section_base_, text_base_, data_base_, function_base_;
const char *buffer_base_;
};