summaryrefslogtreecommitdiff
path: root/systems/doc/pdftex/tests/14-pdfadjustinterwordglue-segfault/.gdbinit
blob: c594ebe168166eac8a333cd6686eeb5c2f0b458a (plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# the macros defined here are to help debugging pdftex
set history save on
set confirm off
set print elements 256

# print scaled
def ps
    print $0/65535.0
end

def pvf
    echo "w="
    p w
    echo "x="
    p x
    echo "y="
    p y
    echo "z="
    p z
end

# print the value of a string
def pstring
    print strpool[strstart[$arg0]]@strstart[$arg0+1]-strstart[$arg0]
end

# print font name as string
def pfontname
    pstring fontname[$arg0]
end

# print various values related to a font
def pfont
    echo "fontname = "
    pfontname $arg0
    echo "fontsize = "
    p fontsize[$arg0]/65536.0
    echo "pdffontautoexpand = "
    p pdffontautoexpand[$arg0]
end

# print type of node as string
def pnodetype
    if $arg0 >= himemmin
        echo char_node\n
    else
        if zmem[$arg0].hh.u.B0 == 0
            echo hlist_node\n
        end
        if zmem[$arg0].hh.u.B0 == 1
            echo vlist_node\n
        end
        if zmem[$arg0].hh.u.B0 == 2
            echo rule_node\n
        end
        if zmem[$arg0].hh.u.B0 == 3
            echo ins_node\n
        end
        if zmem[$arg0].hh.u.B0 == 4
            echo mark_node\n
        end
        if zmem[$arg0].hh.u.B0 == 5
            echo adjust_node\n
        end
        if zmem[$arg0].hh.u.B0 == 6
            echo ligature_node\n
        end
        if zmem[$arg0].hh.u.B0 == 7
            echo disc_node\n
        end
        if zmem[$arg0].hh.u.B0 == 8
            echo whatsit_node\n
        end
        if zmem[$arg0].hh.u.B0 == 9
            echo math_node\n
        end
        if zmem[$arg0].hh.u.B0 == 10
            echo glue_node\n
        end
        if zmem[$arg0].hh.u.B0 == 11
            echo kern_node\n
        end
        if zmem[$arg0].hh.u.B0 == 12
            echo penalty_node\n
        end
        if zmem[$arg0].hh.u.B0 == 13
            echo unset_node\n
        end
    end
end

# print type of a node
# def ptype
#     print mem[$arg0].hh.u.B0
# end
# 
# def psubtype
# print mem[$arg0].hh.u.B1
# end
# 
# def pfont
#     ptype $arg0
# end
# 
# def pchar
# psubtype($arg0)
# end
# 
# def pinfo
# print mem[$arg0].hh.v.LH
# end
# 
# def plink
# print mem[$arg0].hh.v.RH
# end
# 
# def pmarginchar
# pinfo($arg0+2)
# end
# 
# def setpdflatex
# set args -fmt=pdflatex $arg0
# end