Add missing "end" to gdb macro

TBR=jochen@chromium.org

Review-Url: https://codereview.chromium.org/2474433011
Cr-Commit-Position: refs/heads/master@{#40749}
This commit is contained in:
yangguo 2016-11-04 01:23:16 -07:00 committed by Commit bot
parent 6ab61037f3
commit 388acfc4ed

View File

@ -72,7 +72,7 @@ end
define bta
python
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)>")
btl = gdb.execute("backtrace full", to_string = True).splitlines()
for l in btl:
@ -89,6 +89,7 @@ for l in btl:
color = "\033[92m"
print("%s -> %s %s (%s)\033[0m" % (color, prefix, match.group(2), match.group(1)))
end
end
document bta
Print stack trace with assertion scopes
Usage: bta