Commit 388acfc4 authored by yangguo's avatar yangguo Committed by Commit bot

Add missing "end" to gdb macro

TBR=jochen@chromium.org

Review-Url: https://codereview.chromium.org/2474433011
Cr-Commit-Position: refs/heads/master@{#40749}
parent 6ab61037
...@@ -72,7 +72,7 @@ end ...@@ -72,7 +72,7 @@ end
define bta define bta
python python
import re import re
frame_re = re.compile("^#(\d+).* in (\S+) .+ at (.+)") frame_re = re.compile("^#(\d+)\s*(?:0x[a-f\d]+ in )?(.+) \(.+ at (.+)")
assert_re = re.compile("^\s*(\S+) = .+<v8::internal::Per\w+AssertType::(\w+)_ASSERT, (false|true)>") assert_re = re.compile("^\s*(\S+) = .+<v8::internal::Per\w+AssertType::(\w+)_ASSERT, (false|true)>")
btl = gdb.execute("backtrace full", to_string = True).splitlines() btl = gdb.execute("backtrace full", to_string = True).splitlines()
for l in btl: for l in btl:
...@@ -89,6 +89,7 @@ for l in btl: ...@@ -89,6 +89,7 @@ for l in btl:
color = "\033[92m" color = "\033[92m"
print("%s -> %s %s (%s)\033[0m" % (color, prefix, match.group(2), match.group(1))) print("%s -> %s %s (%s)\033[0m" % (color, prefix, match.group(2), match.group(1)))
end end
end
document bta document bta
Print stack trace with assertion scopes Print stack trace with assertion scopes
Usage: bta Usage: bta
......
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