Revision 2230

trunk/tests/gdb.py/gdb.py (revision 2230)
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")
trunk/tests/gdb.py/GNUmakefile (revision 2230)
1
all: simple gdb.py
2
	gdb --python gdb.py
3

  
4
simple: simple.tpl simple.dat
5
	../../admb -g simple.tpl
6

  
7
simple.dat:
8
	cp ../../examples/admb/simple/simple.dat .
9

  
10
simple.tpl:
11
	cp ../../examples/admb/simple/simple.tpl .
12

  
13
clean:
14
	@rm -vf admodel.cov
15
	@rm -vf admodel.dep
16
	@rm -vf admodel.hes
17
	@rm -vf eigv.rpt
18
	@rm -vf fmin.log
19
	@rm -vf simple
20
	@rm -vf simple.bar
21
	@rm -vf simple.cor
22
	@rm -vf simple.cpp
23
	@rm -vf simple.dat
24
	@rm -vf simple.eva
25
	@rm -vf simple.htp
26
	@rm -vf simple.log
27
	@rm -vf simple.obj
28
	@rm -vf simple.par
29
	@rm -vf simple.std
30
	@rm -vf simple.tpl
31
	@rm -vf variance

Also available in: Unified diff