Statistics
| Revision:

root / trunk / tests / gdb.py / gdb.py @ 2230

History | View | Annotate | Download (270 Bytes)

1
import sys
2
import gdb
3
gdb.execute("file ./simple")
4
gdb.execute("break main")
5
gdb.breakpoints()
6
gdb.execute("run")
7
gdb.execute("bt")
8

    
9
class HelloWorld:
10

    
11
  def __init__ (self):
12
    self.name = "HelloWorld"
13
    print "Hello, World!"
14

    
15
HelloWorld ()
16

    
17
gdb.execute("continue")