]>
git.saurik.com Git - apple/objc4.git/blob - runtime/objc-auto-dump.h
4 // The raw dump file format
5 // See objc-gdb.h for the primitive.
7 // Created by Blaine Garst on 12/8/08.
8 // Copyright 2008 Apple, Inc. All rights reserved.
13 * Raw file format definitions
16 // must be unique in first letter...
18 #define HEADER "dumpster"
33 Raw format, not that anyone should really care. Most programs should use the cooked file reader.
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