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

Issue 10697067: Add function to grokdump shell to print ASCII string. (Closed)

Created:
8 years, 5 months ago by Yang
Modified:
8 years, 5 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Add function to grokdump shell to print ASCII string. R=mstarzinger@chromium.org BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=11981

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M tools/grokdump.py View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
8 years, 5 months ago (2012-07-03 09:59:53 UTC) #1
Yang
8 years, 5 months ago (2012-07-03 10:00:21 UTC) #2
Michael Starzinger
Just a few nits/suggestions. Otherwise LGTM. https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py File tools/grokdump.py (right): https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py#newcode1595 tools/grokdump.py:1595: def do_ascii(self, address): ...
8 years, 5 months ago (2012-07-03 11:43:16 UTC) #3
Yang
8 years, 5 months ago (2012-07-03 11:51:11 UTC) #4
https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py
File tools/grokdump.py (right):

https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py#newc...
tools/grokdump.py:1595: def do_ascii(self, address):
On 2012/07/03 11:43:16, Michael Starzinger wrote:
> How about naming this command "dascii" or just "da", because it belongs to the
> "dump" category.

Done.

https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py#newc...
tools/grokdump.py:1597: Print ASCII string starting at specified address.
On 2012/07/03 11:43:16, Michael Starzinger wrote:
> Indent that by one space for consistency.

Done.

https://chromiumcodereview.appspot.com/10697067/diff/1/tools/grokdump.py#newc...
tools/grokdump.py:1612: print "%s" % string
On 2012/07/03 11:43:16, Michael Starzinger wrote:
> Maybe we should put parentheses around the string. I am not sure about that,
> I'll leave it up to you.

Quotes don't work that well since the string may not terminate cleanly (I don't
try to detect null termination, but assume the string to terminate when the
ASCII content ends).

Powered by Google App Engine
This is Rietveld 408576698