summaryrefslogtreecommitdiff
path: root/data/eo/eo_step.py
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-04-16 10:45:21 +0100
committerTom Hacohen <tom@stosb.com>2013-04-16 11:45:34 +0100
commit9ad398be60409d093b3a1f0e579509579e878103 (patch)
tree524732be9ad7ecaa9ef04e69eea17b52338136b1 /data/eo/eo_step.py
parent32f27fee7ef375b91c406b1340162a3752441552 (diff)
Eo gdb: eo gdb script is now autoloaded by gdb, added eo_backtrace.
If you install the efl to a different path than the one gdb was installed to either set gdb's data dir, or just symlink the file to the other prefix. You can still use the old method of just loading the module.
Diffstat (limited to 'data/eo/eo_step.py')
-rw-r--r--data/eo/eo_step.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/data/eo/eo_step.py b/data/eo/eo_step.py
deleted file mode 100644
index 54dd998648..0000000000
--- a/data/eo/eo_step.py
+++ /dev/null
@@ -1,17 +0,0 @@
1class Eo_step(gdb.Command):
2 def __init__(self):
3 gdb.Command.__init__(self, "eo_step", gdb.COMMAND_OBSCURE)
4
5 def invoke (self, arg, from_tty):
6 # While libeo is not reached, we step into
7 while gdb.solib_name(gdb.selected_frame().pc()).find("libeo.so") == -1:
8 # step by one assembly instruction, no print
9 gdb.execute("stepi", False, to_string=True)
10
11 # While we are in libeo or in an unknown function, we step into
12 while (gdb.selected_frame().function() == None) or (gdb.solib_name(gdb.selected_frame().pc()).find("libeo.so") != -1):
13 # step by one assembly instruction, no print
14 gdb.execute("stepi", False, to_string=True)
15
16 print "Stopped at file " + gdb.selected_frame().find_sal().symtab.filename+ " line " + str(gdb.selected_frame().find_sal().line) + " function " + str(gdb.selected_frame().function())
17Eo_step()