1 Breakpoint
1 at
0x........
: file watchpoints.c
, line
7.
3 Breakpoint
1, breakme
(line
=19) at watchpoints.c
:7
4 7 fprintf
(stderr
, "breakme function called from line %d\n", line);
5 Hardware read watchpoint
2: undefined
[0]
6 Hardware access
(read
/write
) watchpoint
3: undefined
[4]
7 Hardware watchpoint
4: undefined
[8]
8 Hardware read watchpoint
5: undefined
[9]
9 Hardware access
(read
/write
) watchpoint
6: undefined
[9]
10 Hardware watchpoint
7: undefined
[9]
12 Hardware read watchpoint
2: undefined
[0]
14 main
(argc
=1, argv
=0x........
) at watchpoints.c
:23
15 23 if (undefined
[0] == 'u')
17 Hardware access
(read
/write
) watchpoint
3: undefined
[4]
19 main
(argc
=1, argv
=0x........
) at watchpoints.c
:28
20 28 if (undefined
[4] == 'f')
22 Hardware access
(read
/write
) watchpoint
3: undefined
[4]
25 main
(argc
=1, argv
=0x........
) at watchpoints.c
:46
26 46 fprintf
(stderr
, "before writing 8\n");
28 Hardware watchpoint
4: undefined
[8]
31 main
(argc
=1, argv
=0x........
) at watchpoints.c
:49
32 49 fprintf
(stderr
, "after writing 8\n");
33 Delete all breakpoints
, watchpoints
, tracepoints
, and catchpoints?
(y or n
) [answered Y
; input not from terminal
]
34 Breakpoint
8 at
0x........
: file watchpoints.c
, line
70.
36 Breakpoint
8, main
(argc
=1, argv
=0x........
) at watchpoints.c
:70
37 70 free
(k50
); //break2
38 $
1 = 'p' <repeats
50000 times
>
40 Program exited normally.