2 (load-file "../realgud/debugger/remake/init.el")
3 (load-file "./regexp-helper.el")
7 (set (make-local-variable 'prompt-pat)
8 (gethash "prompt" realgud:remake-pat-hash))
9 (set (make-local-variable 'frame-pat)
10 (gethash "debugger-backtrace" realgud:remake-pat-hash))
12 (note "remake prompt")
13 (prompt-match "remake<10> " "10")
14 (prompt-match "remake<<1>> " "1" "recursive remake %s")
16 (note "remake debugger-backtrace")
18 "=>#0 Makefile.in at /tmp/Makefile:216
19 #1 Makefile at /tmp/Makefile:230
22 (set (make-local-variable 'frame-re)
23 (realgud-loc-pat-regexp frame-pat))
24 (set (make-local-variable 'num-group)
25 (realgud-loc-pat-num frame-pat))
26 (set (make-local-variable 'file-group)
27 (realgud-loc-pat-file-group frame-pat))
28 (set (make-local-variable 'line-group)
29 (realgud-loc-pat-line-group frame-pat))
31 (assert-equal 0 (string-match frame-re s1))
32 (assert-equal "0" (substring s1
33 (match-beginning num-group)
34 (match-end num-group)))
35 (assert-equal "/tmp/Makefile"
37 (match-beginning file-group)
38 (match-end file-group)))
41 (match-beginning line-group)
42 (match-end line-group)))
43 (set (make-local-variable 'pos)
46 (assert-equal 39 (string-match frame-re s1 pos))
47 (assert-equal "1" (substring s1
48 (match-beginning num-group)
49 (match-end num-group)))
50 (assert-equal "/tmp/Makefile"
52 (match-beginning file-group)
53 (match-end file-group)))
56 (match-beginning line-group)
57 (match-end line-group)))