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

Issue 848013004: Make --gdb work for android (Closed)

Created:
5 years, 11 months ago by eseidel
Modified:
5 years, 11 months ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, esprehn, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Make --gdb work for android This mostly works. I haven't yet set up pulling down the system binaries from the device to the host so that symbols appear correctly, but I'll do that in the next patch. One of the crazy things this patch adds it a script to watch for loads on adb logcat and set up mappings from the cache library names to the symboled binaries in the out directory. Presumably other scripts may want to share this functionality so I've made it its own script. Better would be to have mojo_shell spit out a file including the cache mapping information and we could watch that file instead of logcat, but this works for now. R=qsr@chromium.org BUG= Committed: https://chromium.googlesource.com/external/mojo/+/57cd1992a2ecbb4103715d0969ce74c45d4b2847

Patch Set 1 #

Patch Set 2 : Add missing file #

Total comments: 20

Patch Set 3 : Updated per qsr review #

Total comments: 8

Patch Set 4 : Fix nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -26 lines) Patch
M shell/context.cc View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M shell/desktop/mojo_main.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M shell/switches.h View 1 chunk +1 line, -1 line 0 comments Download
A sky/tools/mojo_cache_linker.py View 1 2 3 1 chunk +64 lines, -0 lines 1 comment Download
M sky/tools/skydb View 1 2 3 10 chunks +122 lines, -23 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
eseidel
5 years, 11 months ago (2015-01-15 23:04:23 UTC) #1
qsr
https://codereview.chromium.org/848013004/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/848013004/diff/20001/shell/context.cc#newcode155 shell/context.cc:155: if (command_line->HasSwitch(switches::kWaitForDebugger)) You should be able to do this ...
5 years, 11 months ago (2015-01-16 00:04:19 UTC) #2
eseidel
https://codereview.chromium.org/848013004/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/848013004/diff/20001/shell/context.cc#newcode155 shell/context.cc:155: if (command_line->HasSwitch(switches::kWaitForDebugger)) On 2015/01/16 00:04:18, qsr wrote: > You ...
5 years, 11 months ago (2015-01-16 00:14:06 UTC) #3
eseidel
ptal
5 years, 11 months ago (2015-01-16 00:16:40 UTC) #4
qsr
https://codereview.chromium.org/848013004/diff/20001/sky/tools/mojo_cache_linker.py File sky/tools/mojo_cache_linker.py (right): https://codereview.chromium.org/848013004/diff/20001/sky/tools/mojo_cache_linker.py#newcode38 sky/tools/mojo_cache_linker.py:38: logging.info('%s does not match base %s' % (url, args.base_url)) ...
5 years, 11 months ago (2015-01-16 00:46:40 UTC) #5
eseidel
https://codereview.chromium.org/848013004/diff/40001/sky/tools/mojo_cache_linker.py File sky/tools/mojo_cache_linker.py (right): https://codereview.chromium.org/848013004/diff/40001/sky/tools/mojo_cache_linker.py#newcode15 sky/tools/mojo_cache_linker.py:15: def main(): On 2015/01/16 00:46:40, qsr wrote: > Indentation ...
5 years, 11 months ago (2015-01-16 19:17:18 UTC) #6
eseidel
ptal
5 years, 11 months ago (2015-01-16 19:17:46 UTC) #7
qsr
lgtm https://codereview.chromium.org/848013004/diff/60001/sky/tools/mojo_cache_linker.py File sky/tools/mojo_cache_linker.py (right): https://codereview.chromium.org/848013004/diff/60001/sky/tools/mojo_cache_linker.py#newcode10 sky/tools/mojo_cache_linker.py:10: import logging alphabetize https://codereview.chromium.org/848013004/diff/60001/sky/tools/skydb File sky/tools/skydb (right): https://codereview.chromium.org/848013004/diff/60001/sky/tools/skydb#newcode20 ...
5 years, 11 months ago (2015-01-16 19:22:46 UTC) #8
eseidel
5 years, 11 months ago (2015-01-16 19:28:35 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
57cd1992a2ecbb4103715d0969ce74c45d4b2847 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698