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

Issue 321001: Do not use mach_vm.h on iOS. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 12 months ago by qsr
Modified:
12 years, 12 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

 Do not use mach_vm.h on iOS.

 mach_vm.h has been removed from iOS5. Use #define to use vm_ replacement of
mach_vm_ functions on iOS.

 Do not use mach_vm_allocate -> use a stack variable instead.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/mac/handler/dynamic_images.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/client/mac/handler/dynamic_images.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A src/client/mac/handler/mach_vm_compat.h View 3 1 chunk +48 lines, -0 lines 0 comments Download
M src/client/mac/handler/minidump_generator.cc View 1 2 3 2 chunks +5 lines, -14 lines 0 comments Download
M src/client/mac/handler/minidump_generator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
qsr
12 years, 12 months ago #1
Mark Mentovai
http://breakpad.appspot.com/321001/diff/2001/3003 File src/client/mac/handler/mach_vm.h (right): http://breakpad.appspot.com/321001/diff/2001/3003#newcode1 Line 1: // Copyright (c) 2011, Google Inc. Give this ...
12 years, 12 months ago #2
qsr
http://breakpad.appspot.com/321001/diff/2001/3003 File src/client/mac/handler/mach_vm.h (right): http://breakpad.appspot.com/321001/diff/2001/3003#newcode1 Line 1: // Copyright (c) 2011, Google Inc. On 2011/10/24 ...
12 years, 12 months ago #3
Mark Mentovai
LGTM with these two changes. http://breakpad.appspot.com/321001/diff/6001/2004 File src/client/mac/handler/mach_vm_compat.h (right): http://breakpad.appspot.com/321001/diff/6001/2004#newcode30 Line 30: #ifndef CLIENT_MAC_GENERATOR_MACH_VM_COMPAT_H__ The ...
12 years, 12 months ago #4
qsr
12 years, 12 months ago #5
http://breakpad.appspot.com/321001/diff/6001/2004
File src/client/mac/handler/mach_vm_compat.h (right):

http://breakpad.appspot.com/321001/diff/6001/2004#newcode30
Line 30: #ifndef CLIENT_MAC_GENERATOR_MACH_VM_COMPAT_H__
On 2011/10/24 14:55:03, Mark Mentovai wrote:
> The C++ style guide has specified one trailing underscore for #include guards
> for a few years. Two trailing underscores are reserved for the system and
> compiler. Lots of Breakpad code predates that change, but new files should use
> the new one-underscore format.

Done.

http://breakpad.appspot.com/321001/diff/6001/2005
File src/client/mac/handler/minidump_generator.cc (right):

http://breakpad.appspot.com/321001/diff/6001/2005#newcode1382
Line 1382: if (!sysctl(mib, mibsize, &proc, &size, NULL, 0)) {
On 2011/10/24 14:55:03, Mark Mentovai wrote:
> As I mentioned earlier, it’s clearer to use an explicit |sysctl() == 0| rather
> than |!sysctl()|. I usually think of successful system calls like this as
> “returning zero” but ! makes it look like something’s failing, even though the
> compiled machine code will be identical in both cases.

Done.
Sign in to reply to this message.

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