-
Notifications
You must be signed in to change notification settings - Fork 66
/
struct_dump.gdb
114 lines (98 loc) · 2.75 KB
/
struct_dump.gdb
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
macro define offsetof(st, f) ((size_t)&(((st *)0)->f))
macro define typeof(st, f) ((st *)0).f
define fieldof
printf " "
whatis typeof($arg0, $arg1)
printf " $arg1 %lu +%lu\n", offsetof($arg0, $arg1), sizeof(typeof($arg0, $arg1))
end
printf "zend_array\n"
whatis zend_array
fieldof zend_array nTableMask
fieldof zend_array arData
fieldof zend_array nNumUsed
fieldof zend_array nNumOfElements
fieldof zend_array nTableSize
printf "\n"
printf "zend_executor_globals\n"
whatis zend_executor_globals
fieldof zend_executor_globals symbol_table
fieldof zend_executor_globals current_execute_data
printf "\n"
printf "zend_execute_data\n"
whatis zend_execute_data
fieldof zend_execute_data opline
fieldof zend_execute_data func
fieldof zend_execute_data prev_execute_data
fieldof zend_execute_data symbol_table
printf "\n"
printf "zend_op_array\n"
whatis zend_op_array
fieldof zend_op_array last_var
fieldof zend_op_array vars
fieldof zend_op_array filename
fieldof zend_op_array line_start
printf "\n"
printf "zend_function\n"
whatis zend_function
fieldof zend_function type
fieldof zend_function common
fieldof zend_function common.function_name
fieldof zend_function common.scope
fieldof zend_function op_array
printf "\n"
printf "zend_class_entry\n"
whatis zend_class_entry
fieldof zend_class_entry name
printf "\n"
printf "zend_string\n"
whatis zend_string
fieldof zend_string len
fieldof zend_string val
printf "\n"
printf "zend_op\n"
whatis zend_op
fieldof zend_op lineno
printf "\n"
printf "sapi_request_info\n"
whatis sapi_request_info
fieldof sapi_request_info query_string
fieldof sapi_request_info cookie_data
fieldof sapi_request_info path_translated
fieldof sapi_request_info request_uri
printf "\n"
printf "sapi_globals_struct\n"
whatis sapi_globals_struct
fieldof sapi_globals_struct request_info
fieldof sapi_globals_struct global_request_time
printf "\n"
printf "zend_value\n"
whatis zend_value
fieldof zend_value lval
fieldof zend_value dval
fieldof zend_value str
fieldof zend_value arr
printf "\n"
printf "zval\n"
whatis zval
fieldof zval value
fieldof zval u1
fieldof zval u1.v
fieldof zval u1.v.type
fieldof zval u2
fieldof zval u2.next
printf "\n"
printf "Bucket\n"
whatis Bucket
fieldof Bucket val
fieldof Bucket h
fieldof Bucket key
printf "\n"
printf "zend_alloc_globals\n"
whatis zend_alloc_globals
fieldof zend_alloc_globals mm_heap
printf "\n"
printf "zend_mm_heap\n"
whatis zend_mm_heap
fieldof zend_mm_heap size
fieldof zend_mm_heap peak
printf "\n"