aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-08 20:53:04 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-08 20:53:45 +0900
commit4850c53350732d0617f10bcee964df4d9b197681 (patch)
treeced3b4dce0d4ea8f1c9d7242fb392449fc4ad887 /data
parenteina_str.c: fixed formatting. (diff)
downloadefl-4850c53350732d0617f10bcee964df4d9b197681.tar.gz
eo_gdb.py: added eo_bt for eo_backtrace alias in an ugly way.
It'll be great if someone teaches how to add a alias in a python gdb script.
Diffstat (limited to 'data')
-rw-r--r--data/eo/eo_gdb.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/eo/eo_gdb.py b/data/eo/eo_gdb.py
index ab848053b8..479b06fda4 100644
--- a/data/eo/eo_gdb.py
+++ b/data/eo/eo_gdb.py
@@ -33,3 +33,18 @@ class Eo_backtrace(gdb.Command):
print line
Eo_backtrace()
+
+# ugly alias of eo_backtrace.
+# Very crude, but works for the meanwhile
+class Eo_bt(gdb.Command):
+ def __init__(self):
+ gdb.Command.__init__(self, "eo_bt", gdb.COMMAND_OBSCURE)
+
+ def invoke (self, arg, from_tty):
+ btrace = gdb.execute("backtrace", False, to_string=True).split('\n')
+
+ for line in btrace:
+ if line.find("libeo.so") == -1 and line.find("lib/eo/") == -1:
+ print line
+
+Eo_bt()