File: brkpt1.cmd

package info (click to toggle)
pydb 1.19-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,952 kB
  • ctags: 1,412
  • sloc: python: 3,065; perl: 2,479; sh: 586; makefile: 555; lisp: 265; ansic: 16
file content (66 lines) | stat: -rw-r--r-- 1,720 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 
# Test of breakpoint handling
# $Id: brkpt1.cmd,v 1.5 2006/10/25 10:50:12 rockyb Exp $
#
set base on
set cmd on
###############################################################
# Test the breakpoint by line number
###############################################################
info break
break 30
info break
###############################################################
### Test enable/disable...
###############################################################
enable
enable 1
info break
enable foo
disable 1
disable
info break
################################################################
### Try setting breakpoints outside of the file range...
###############################################################
break 0
break 1
break 99
# 
# list breakpoints
L
###############################################################
### *** Test using file:line format on break...
###############################################################
break hanoi.py:22
break ./hanoi.py:22
break ./hanoi.py:0
break ./dbg-test1.sh:1955
info break
#### Try deleting breakpoints...
delete 10
delete 1
clear 22
info break
break 22
###############################################################
### *** Test breakpoints with conditions...
###############################################################
condition 1 x==0
### FIXME: there is no condition 2!
### condition 2 y > 25
condition 4 y > 25
info break
### FIXME: there still is no condition 2
### condition 2
condition 4
info break
condition x==1
condition bad
condition 30 y==1
###############################################################
### *** Test breakpoints by function name
###############################################################
break hanoi
clear hanoi
q