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

Issue 1209593002: GDB support for Android in devtools' debugger. (Closed)

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

Description

GDB support for Android in devtools' debugger. See README.md for usage. R=ppi@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/72098cf04f5ecf30c9f567bf4ece19a46ba6ba9d

Patch Set 1 #

Total comments: 62

Patch Set 2 : #

Patch Set 3 : #

Total comments: 78

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Kill stray remote file reader #

Total comments: 32

Patch Set 7 : #

Total comments: 5

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -2 lines) Patch
M .gitignore View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M README.md View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A + mojo/devtools/common/android_gdb/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A mojo/devtools/common/android_gdb/config.py View 1 1 chunk +9 lines, -0 lines 0 comments Download
A mojo/devtools/common/android_gdb/install_remote_file_reader.py View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A mojo/devtools/common/android_gdb/remote_file_connection.py View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A mojo/devtools/common/android_gdb/session.py View 1 2 3 4 5 6 7 8 1 chunk +280 lines, -0 lines 0 comments Download
M mojo/devtools/common/debugger View 1 2 3 4 5 6 7 3 chunks +173 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (1 generated)
etiennej
5 years, 6 months ago (2015-06-24 14:34:15 UTC) #2
ppi
Sweet! Please add instructions for this in https://github.com/domokit/mojo/blob/master/README.md#debugging-tracing-profiling . Please find first-pass comments below. https://codereview.chromium.org/1209593002/diff/1/mojo/devtools/common/android_gdb/config.py ...
5 years, 6 months ago (2015-06-24 15:14:08 UTC) #3
qsr
https://codereview.chromium.org/1209593002/diff/1/mojo/devtools/common/debugger File mojo/devtools/common/debugger (right): https://codereview.chromium.org/1209593002/diff/1/mojo/devtools/common/debugger#newcode225 mojo/devtools/common/debugger:225: device_gdb_parser.set_defaults(func=_device_gdb) Hum. It would be good if that worked ...
5 years, 6 months ago (2015-06-24 15:29:02 UTC) #4
etiennej
https://codereview.chromium.org/1209593002/diff/1/mojo/devtools/common/android_gdb/config.py File mojo/devtools/common/android_gdb/config.py (right): https://codereview.chromium.org/1209593002/diff/1/mojo/devtools/common/android_gdb/config.py#newcode5 mojo/devtools/common/android_gdb/config.py:5: # Path where remote_file_reader should be installed on the ...
5 years, 5 months ago (2015-06-29 15:41:43 UTC) #5
etiennej
ppi: I addressed your offline comments.
5 years, 5 months ago (2015-07-08 15:59:52 UTC) #6
ppi
https://codereview.chromium.org/1209593002/diff/40001/README.md File README.md (right): https://codereview.chromium.org/1209593002/diff/40001/README.md#newcode268 README.md:268: #### GDB support "support" is redundant, let's just say ...
5 years, 5 months ago (2015-07-09 13:12:40 UTC) #7
qsr
https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/install_remote_file_reader.py File mojo/devtools/common/android_gdb/install_remote_file_reader.py (right): https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/install_remote_file_reader.py#newcode10 mojo/devtools/common/android_gdb/install_remote_file_reader.py:10: def install_binary(gsutil, adb='adb'): On 2015/07/09 13:12:38, ppi (ooo until ...
5 years, 5 months ago (2015-07-09 13:54:18 UTC) #8
qsr
https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/remote_file_connection.py File mojo/devtools/common/android_gdb/remote_file_connection.py (right): https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/remote_file_connection.py#newcode27 mojo/devtools/common/android_gdb/remote_file_connection.py:27: def close(self): On 2015/07/09 13:54:18, qsr wrote: > On ...
5 years, 5 months ago (2015-07-09 14:06:16 UTC) #9
ppi
https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/session.py File mojo/devtools/common/android_gdb/session.py (right): https://codereview.chromium.org/1209593002/diff/40001/mojo/devtools/common/android_gdb/session.py#newcode129 mojo/devtools/common/android_gdb/session.py:129: data = file_object.read(min(4096, text_section['sh_size'])) On 2015/07/09 13:54:18, qsr wrote: ...
5 years, 5 months ago (2015-07-09 14:16:11 UTC) #10
etiennej
I am still working on properly passing Ctrl-C down to gdb. https://codereview.chromium.org/1209593002/diff/40001/README.md File README.md (right): ...
5 years, 5 months ago (2015-07-15 07:13:21 UTC) #11
etiennej
I fixed the signal handling. ppi@, ptal
5 years, 5 months ago (2015-07-15 11:06:32 UTC) #12
ppi
https://codereview.chromium.org/1209593002/diff/100001/README.md File README.md (right): https://codereview.chromium.org/1209593002/diff/100001/README.md#newcode273 README.md:273: mojo/devtools/common/debugger gdb attach The error I get is "CRITICAL:root:Unable ...
5 years, 5 months ago (2015-07-15 13:54:18 UTC) #13
etiennej
https://codereview.chromium.org/1209593002/diff/100001/README.md File README.md (right): https://codereview.chromium.org/1209593002/diff/100001/README.md#newcode273 README.md:273: mojo/devtools/common/debugger gdb attach On 2015/07/15 13:54:18, ppi wrote: > ...
5 years, 5 months ago (2015-07-15 14:43:04 UTC) #14
ppi
lgtm, thanks! https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/android_gdb/session.py File mojo/devtools/common/android_gdb/session.py (right): https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/android_gdb/session.py#newcode129 mojo/devtools/common/android_gdb/session.py:129: Remove the trailing whitespace (four spaces). https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/android_gdb/session.py#newcode130 ...
5 years, 5 months ago (2015-07-16 09:28:19 UTC) #15
etiennej
https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/android_gdb/session.py File mojo/devtools/common/android_gdb/session.py (right): https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/android_gdb/session.py#newcode129 mojo/devtools/common/android_gdb/session.py:129: On 2015/07/16 09:28:19, ppi wrote: > Remove the trailing ...
5 years, 5 months ago (2015-07-16 10:53:58 UTC) #16
etiennej
Committed patchset #9 (id:160001) manually as 72098cf04f5ecf30c9f567bf4ece19a46ba6ba9d (presubmit successful).
5 years, 5 months ago (2015-07-16 11:07:23 UTC) #17
kulakowski
5 years, 5 months ago (2015-07-16 15:51:14 UTC) #18
Message was sent while issue was closed.
On 2015/07/16 09:28:19, ppi wrote:
> lgtm, thanks!
> 
>
https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/a...
> File mojo/devtools/common/android_gdb/session.py (right):
> 
>
https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/a...
> mojo/devtools/common/android_gdb/session.py:129: 
> Remove the trailing whitespace (four spaces).
> 
>
https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/a...
> mojo/devtools/common/android_gdb/session.py:130: def stop(self, _ = None):
> No spaces around "=".
> 
>
https://codereview.chromium.org/1209593002/diff/120001/mojo/devtools/common/a...
> mojo/devtools/common/android_gdb/session.py:130: def stop(self, _ = None):
> I'd probably call the second variable _unused_return_value to make the code
less
> puzzling, and then suppress the pylint check, maybe it's not worth it though.

Is there a tool a la clangfmt that can do this formatting automatically?

Powered by Google App Engine
This is Rietveld 408576698