seoz pushed a commit to branch master.
commit 3c2905156e2f42954bdca6a56725a8a8bd7da990
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 8 22:02:50 2013 +0900
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.
---
data/eo/eo_gdb.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/data/eo/eo_gdb.py b/data/eo/eo_gdb.py
index 479b06f..ab84805 100644
--- a/data/eo/eo_gdb.py
+++ b/data/eo/eo_gdb.py
@@ -33,18 +33,3 @@ 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()
--
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may