Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Issue 2156173002: Don't define |r_debug| and |link_map| on Android releases 21 and later

Created:
4 years, 5 months ago by tzimmermann
Modified:
4 years, 4 months ago
Reviewers:
rmcilroy
CC:
google-breakpad-dev_googlegroups.com, Ted Mielczarek
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't define |r_debug| and |link_map| on Android releases 21 and later NDKs for Android 21 and later have the data structures |r_debug| and |link_map| defined in their header files. Defining them multiple times generates a compiler error. This patch protects both data structures from definition on Android 21 and later. BUG=629088 R=rmcilroy@chromium.org Committed: https://chromium.googlesource.com/breakpad/breakpad/+/0ebdc4a10a506e2a4a3a039c479b40219a84b760 Committed: https://chromium.googlesource.com/breakpad/breakpad/+/0fc6d0c8dfbb6e4226fd79c622b701a62c901f14

Patch Set 1 #

Total comments: 1

Patch Set 2 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Total comments: 1

Patch Set 3 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Patch Set 4 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Total comments: 1

Patch Set 5 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Patch Set 6 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Total comments: 1

Patch Set 7 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Patch Set 8 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Patch Set 9 : Don't redefine |r_debug| and |link_map| on Android releases 21 and later #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -5 lines) Patch
M src/common/android/include/link.h View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
rmcilroy
https://codereview.chromium.org/2156173002/diff/1/src/common/android/include/link.h File src/common/android/include/link.h (right): https://codereview.chromium.org/2156173002/diff/1/src/common/android/include/link.h#newcode47 src/common/android/include/link.h:47: #if defined(ANDROID) && ANDROID_VERSION <= 20 I don't think ...
4 years, 5 months ago (2016-07-18 15:04:08 UTC) #3
tzimmermann
Hi! On 2016/07/18 15:04:08, rmcilroy wrote: > Also, where does ANDROID_VERSION come from? I don't ...
4 years, 5 months ago (2016-07-19 06:39:04 UTC) #4
tzimmermann
This is my first patch. Please run the try jobs once you're OK with them. ...
4 years, 5 months ago (2016-07-19 06:46:19 UTC) #5
tzimmermann
On 2016/07/19 06:46:19, tzimmermann wrote: > This is my first patch. Please run the try ...
4 years, 5 months ago (2016-07-19 06:46:50 UTC) #6
rmcilroy
LGTM, thanks. There are no bots for breakpad unfortunately. I'll land this for you, but ...
4 years, 5 months ago (2016-07-19 15:47:26 UTC) #7
rmcilroy
Committed patchset #2 (id:20001) manually as 0ebdc4a10a506e2a4a3a039c479b40219a84b760 (presubmit successful).
4 years, 5 months ago (2016-07-19 16:00:56 UTC) #9
hush (inactive)
this does not compile: ../../breakpad/src/client/linux/minidump_writer/minidump_writer.cc: In member function 'bool {anonymous}::MinidumpWriter::WriteDSODebugStream(MDRawDirectory*)': ../../breakpad/src/client/linux/minidump_writer/minidump_writer.cc:726:20: error: aggregate '{anonymous}::MinidumpWriter::WriteDSODebugStream(MDRawDirectory*)::r_debug debug_entry' ...
4 years, 5 months ago (2016-07-19 18:27:24 UTC) #11
hush (inactive)
#undef r_debug #undef link_map these 2 lines seem to be the culprit. Can you fix?
4 years, 5 months ago (2016-07-19 18:35:11 UTC) #12
hush (inactive)
https://codereview.chromium.org/2156173002/diff/20001/src/common/android/include/link.h File src/common/android/include/link.h (right): https://codereview.chromium.org/2156173002/diff/20001/src/common/android/include/link.h#newcode44 src/common/android/include/link.h:44: the block after line 48 won't be applied to ...
4 years, 5 months ago (2016-07-19 18:52:36 UTC) #13
tzimmermann
Sorry for that mess. Patch set 3 separates the undef from all platforms that don't ...
4 years, 5 months ago (2016-07-20 09:07:45 UTC) #14
rmcilroy
On 2016/07/20 09:07:45, tzimmermann wrote: > Sorry for that mess. > > Patch set 3 ...
4 years, 5 months ago (2016-07-20 10:28:54 UTC) #15
tzimmermann
On 2016/07/20 10:28:54, rmcilroy wrote: > Sorry about that hush@, I've reverted this CL in ...
4 years, 5 months ago (2016-07-20 11:00:45 UTC) #16
rmcilroy
https://codereview.chromium.org/2156173002/diff/60001/src/common/android/include/link.h File src/common/android/include/link.h (right): https://codereview.chromium.org/2156173002/diff/60001/src/common/android/include/link.h#newcode79 src/common/android/include/link.h:79: #include_next <link.h> Instead of including this twice (and doing ...
4 years, 5 months ago (2016-07-21 15:04:21 UTC) #19
tzimmermann
Patch set 6 duplicates the ifdef conditional, so that there's only one include statement.
4 years, 4 months ago (2016-07-27 17:29:34 UTC) #20
rmcilroy
LGTM with a comment. https://codereview.chromium.org/2156173002/diff/100001/src/common/android/include/link.h File src/common/android/include/link.h (right): https://codereview.chromium.org/2156173002/diff/100001/src/common/android/include/link.h#newcode46 src/common/android/include/link.h:46: #endif // !defined(__aarch64__) && !defined(__x86_64__) ...
4 years, 4 months ago (2016-07-28 15:07:52 UTC) #21
tzimmermann
I updated the comments.
4 years, 4 months ago (2016-08-01 09:14:07 UTC) #22
rmcilroy
LGTM, thanks.
4 years, 4 months ago (2016-08-03 14:27:41 UTC) #23
rmcilroy
Committed patchset #7 (id:120001) manually as 0fc6d0c8dfbb6e4226fd79c622b701a62c901f14 (presubmit successful).
4 years, 4 months ago (2016-08-03 14:28:50 UTC) #25
tzimmermann
I've reopened this issue because the patch was reverted. The problem is a multi-line comment. ...
4 years, 4 months ago (2016-08-11 07:04:49 UTC) #27
tzimmermann
Sorry that this trivial change is taking so much effort. I've replaced the multi-line comment ...
4 years, 4 months ago (2016-08-11 07:12:25 UTC) #28
tzimmermann
And fixed another multi-line comment near line 46.
4 years, 4 months ago (2016-08-11 07:14:42 UTC) #29
tzimmermann
4 years, 4 months ago (2016-08-24 12:39:02 UTC) #30
Ping for another review.

I try to test as good as I can (Linux, Android). Is there anything else I can do
to avoid backouts?

Powered by Google App Engine
This is Rietveld 408576698