| 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
|
|
|