]> git.saurik.com Git - apple/objc4.git/blob - runtime/objc-auto-dump.h
objc4-437.tar.gz
[apple/objc4.git] / runtime / objc-auto-dump.h
1 //
2 // objc-auto-dump.h
3 // objc
4 // The raw dump file format
5 // See objc-gdb.h for the primitive.
6 //
7 // Created by Blaine Garst on 12/8/08.
8 // Copyright 2008 Apple, Inc. All rights reserved.
9 //
10
11
12 /*
13 * Raw file format definitions
14 */
15
16 // must be unique in first letter...
17 // RAW FORMAT
18 #define HEADER "dumpster"
19 #define THREAD 't'
20 #define LOCAL 'l'
21 #define NODE 'n'
22 #define REGISTER 'r'
23 #define ROOT 'g'
24 #define WEAK 'w'
25 #define CLASS 'c'
26 #define END 'e'
27
28 #define SixtyFour 1
29 #define Little 2
30
31 /*
32
33 Raw format, not that anyone should really care. Most programs should use the cooked file reader.
34
35 <rawfile := <header> <arch> <middle>* <end>
36 <header> := 'd' 'u' 'm' 'p' 's' 't' 'e' 'r' ; the HEADER string
37 <arch> := SixtyFour? + Little? ; architecture
38 <middle> := <thread> | <root> | <node> | <weak> | <class>
39 <thread> := <register> <stack> <local>* ; the triple
40 <register> := 'r' longLength [bytes] ; the register bank
41 <stack> := 't' longLength [bytes] ; the stack
42 <local> := 'l' [long] ; a thread local node
43 <root> := 'g' longAddress longValue
44 <node> := 'n' longAddress longSize intLayout longRefcount longIsa?
45 <weak> := 'w' longAddress longValue
46 <class> := 'c' longAddress <name> <strongLayout> <weakLayout>
47 <name> := intLength [bytes] ; no null byte
48 <strongLayout> := intLength [bytes] ; including 0 byte at end
49 <weakLayout> := intLength [bytes] ; including 0 byte at end
50 <end> := 'e'
51
52 */
53