Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
davazp committed Dec 21, 2011
2 parents f3fb7f0 + 948bc7d commit 373b629
Show file tree
Hide file tree
Showing 6 changed files with 750 additions and 98 deletions.
14 changes: 13 additions & 1 deletion .gdbinit
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
file eulex
target remote localhost:1234
display /i $pc
python
import struct
with open("eulex.core", "rb") as f:
header = False
while not header:
value, = struct.unpack("i", f.read(4))
header = (value == 0x1BADB002)
f.read(24) # discard other fields
ep, = struct.unpack("i", f.read(4))
bp = gdb.Breakpoint("*" + hex(ep))
bp.enabled = True
end

Loading

0 comments on commit 373b629

Please sign in to comment.