From 388acfc4eddfd8ca527e01394cc5eb5d5075d916 Mon Sep 17 00:00:00 2001 From: yangguo Date: Fri, 4 Nov 2016 01:23:16 -0700 Subject: [PATCH] Add missing "end" to gdb macro TBR=jochen@chromium.org Review-Url: https://codereview.chromium.org/2474433011 Cr-Commit-Position: refs/heads/master@{#40749} --- tools/gdbinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gdbinit b/tools/gdbinit index f332c35876..b696a8fc36 100644 --- a/tools/gdbinit +++ b/tools/gdbinit @@ -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+) = .+") 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