summaryrefslogtreecommitdiff
path: root/data/eo/eo_gdb.py
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-08 22:02:50 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-08 22:06:10 +0900
commit3c2905156e2f42954bdca6a56725a8a8bd7da990 (patch)
treeb936af8d22b634126548d221614e5ea1b3a4d396 /data/eo/eo_gdb.py
parent71c0eb6dc6607209222a715302f8c62bf679eb29 (diff)
Revert "eo_gdb.py: added eo_bt for eo_backtrace alias in an ugly way."
This reverts commit 4850c53350732d0617f10bcee964df4d9b197681. You can set the alias in the .gdbinit. So my .gdbinit looks like: source /usr/local/share/eo/gdb/eo_gdb.py alias -a eo_bt = eo_backtrace Special thanks to Alex-P. Natsios for the tip.
Diffstat (limited to '')
-rw-r--r--data/eo/eo_gdb.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/data/eo/eo_gdb.py b/data/eo/eo_gdb.py
index 479b06fda4..ab848053b8 100644
--- a/data/eo/eo_gdb.py
+++ b/data/eo/eo_gdb.py
@@ -33,18 +33,3 @@ class Eo_backtrace(gdb.Command):
33 print line 33 print line
34 34
35Eo_backtrace() 35Eo_backtrace()
36
37# ugly alias of eo_backtrace.
38# Very crude, but works for the meanwhile
39class Eo_bt(gdb.Command):
40 def __init__(self):
41 gdb.Command.__init__(self, "eo_bt", gdb.COMMAND_OBSCURE)
42
43 def invoke (self, arg, from_tty):
44 btrace = gdb.execute("backtrace", False, to_string=True).split('\n')
45
46 for line in btrace:
47 if line.find("libeo.so") == -1 and line.find("lib/eo/") == -1:
48 print line
49
50Eo_bt()