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

Unified Diff: tools/gdbinit

Issue 2474433011: Add missing "end" to gdb macro (Closed)
Patch Set: also make regexp nicer Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gdbinit
diff --git a/tools/gdbinit b/tools/gdbinit
index f332c358766f122afbd7de175b2bf4f44489b193..b696a8fc36bd19daf854925a794a0757ce5f8362 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+) = .+<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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698