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
This commit is contained in:
jimblandy 2010-08-25 00:41:25 +00:00
parent f8bca185b9
commit a453cc24f4
3 changed files with 22 additions and 22 deletions

View file

@ -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.

View file

@ -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_;
};

View file

@ -88,12 +88,12 @@ static int PrintRegister(const char *name, u_int32_t value, int sequence) {
//=============================================================================
static void PrintStack(const CallStack *stack, const string &cpu) {
int frame_count = stack->frames()->size();
size_t frame_count = stack->frames()->size();
char buffer[1024];
for (int frame_index = 0; frame_index < frame_count; ++frame_index) {
for (size_t frame_index = 0; frame_index < frame_count; ++frame_index) {
const StackFrame *frame = stack->frames()->at(frame_index);
const CodeModule *module = frame->module;
printf("%2d ", frame_index);
printf("%2zu ", frame_index);
if (module) {
// Module name (20 chars max)
@ -279,7 +279,7 @@ static void ProcessSingleReport(Options *options, NSString *file_path) {
}
// Print all of the threads in the dump.
int thread_count = process_state.threads()->size();
int thread_count = static_cast<int>(process_state.threads()->size());
const std::vector<google_breakpad::MinidumpMemoryRegion*>
*thread_memory_regions = process_state.thread_memory_regions();