summaryrefslogtreecommitdiff
path: root/data/eo
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-11-18 07:31:39 +0000
committerTom Hacohen <tom@stosb.com>2016-11-18 11:48:07 +0000
commit3dd51bf53de9003e0e3ba396a5c0f2b10c44c1fd (patch)
tree244645be635e8c13bd9e118a6a5dd3904dd987ed /data/eo
parent3a98ee3796d7fe4bc70be99fc928dd3d89eddc4a (diff)
Eo gdb: remove old and broken gdb macro.
Diffstat (limited to 'data/eo')
-rw-r--r--data/eo/eo_gdb.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/data/eo/eo_gdb.py b/data/eo/eo_gdb.py
index aafe881eff..219121034e 100644
--- a/data/eo/eo_gdb.py
+++ b/data/eo/eo_gdb.py
@@ -2,42 +2,3 @@
2 2
3import gdb 3import gdb
4 4
5def symbol_equal_to_string(symbol, string):
6 return (symbol != None) and (symbol.name == string)
7
8class Eo_step(gdb.Command):
9 STEP_LIMIT = 10
10 def __init__(self):
11 gdb.Command.__init__(self, "eo_step", gdb.COMMAND_OBSCURE)
12 self.START_FUNC = "_eo_call_resolve"
13 self.SKIP_FUNC = "_eo_do_start"
14
15 def invoke (self, arg, from_tty):
16 # Get to the call resolve function.
17 i = 0
18 while not symbol_equal_to_string(gdb.selected_frame().function(), self.START_FUNC):
19 if symbol_equal_to_string(gdb.selected_frame().function(), self.SKIP_FUNC):
20 gdb.execute("finish", False, to_string=True)
21
22 if i > Eo_step.STEP_LIMIT:
23 break
24 else:
25 i += 1
26 gdb.execute("step", False, to_string=True)
27
28 # If we found the function, return from it, otherwise, fail.
29 if symbol_equal_to_string(gdb.selected_frame().function(), self.START_FUNC):
30 gdb.execute("finish", False, to_string=True)
31 else:
32 print("Search limit reached, you tried calling eo_step too far from an eo_do.")
33 return
34
35 # Step until we move to a different function. FIXME: The hook can confuse us, needs to be solved.
36 cur_func = gdb.selected_frame().function()
37 while gdb.selected_frame().function() == cur_func:
38 gdb.execute("stepi", False, to_string=True)
39
40 # One last call to skip into the implementation
41 gdb.execute("step", True)
42
43Eo_step()