Commit 38c902de authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[tools] Increase limits to find stack messages in grokdump.py

Change-Id: I3b7e5f4fb9bc6cdad3582e19099fb97b2a0c7cb0
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/684185Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48258}
parent e65c0b25
......@@ -2061,7 +2061,7 @@ class InspectionPadawan(object):
if start is None:
start = self.reader.ExceptionSP()
if not self.reader.IsValidAddress(start): return start
end = start + ptr_size * 1024
end = start + ptr_size * 1024 * 4
message_start = 0
magic1 = None
for slot in xrange(start, end, ptr_size):
......@@ -2078,7 +2078,9 @@ class InspectionPadawan(object):
On Mac we don't always get proper magic markers, so just try printing
the first long ascii string found on the stack.
"""
message_start, message = self.FindFirstAsciiString(start)
magic1 = None
magic2 = None
message_start, message = self.FindFirstAsciiString(start, end, 128)
if message_start is None: return start
else:
message = self.reader.ReadAsciiString(message_start)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment