File: trace.gdb

package info (click to toggle)
arb 6.0.6-8
  • links: PTS, VCS
  • area: non-free
  • in suites: sid, trixie
  • size: 66,204 kB
  • sloc: ansic: 394,911; cpp: 250,290; makefile: 19,644; sh: 15,879; perl: 10,473; fortran: 6,019; ruby: 683; xml: 503; python: 53; awk: 32
file content (61 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download | duplicates (6)
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
define sep
        echo ------------------------\n
end
define head
        sep
        echo $arg0\n
        sep
end
define brk
        sep
        echo setting breakpoint $arg0\n
        sep
        break $arg0
end
define atstop
        # now program either terminated, crashed or hit a breakpoint

        head stop_reached
        where 1000 full

        head disassembled
        disassemble

        head listing
        set listsize 10
        list    

        # if program terminated or crashed, 'continue' will cause a script error and
        # the script will stop. Otherwise it loops forever.
        continue
        atstop
end


brk main
run

# now program is in main() - set all breakpoints

set breakpoint pending on

brk exit
brk _fini
brk malloc_error_break

set print pretty
set print array
#set print array-indexes
set print null-stop
set print elements 2000
set print repeats 100
set print object
set print vtbl

head shared_libraries
info sharedlibrary

set verbose

continue
atstop