// // objc-auto-dump.h // objc // The raw dump file format // See objc-gdb.h for the primitive. // // Created by Blaine Garst on 12/8/08. // Copyright 2008 Apple, Inc. All rights reserved. // #ifndef _OBJC_AUTO_DUMP_H_ #define _OBJC_AUTO_DUMP_H_ /* * Raw file format definitions */ // must be unique in first letter... // RAW FORMAT #define HEADER "dumpster" #define THREAD 't' #define LOCAL 'l' #define NODE 'n' #define REGISTER 'r' #define ROOT 'g' #define WEAK 'w' #define CLASS 'c' #define END 'e' #define SixtyFour 1 #define Little 2 /* Raw format, not that anyone should really care. Most programs should use the cooked file reader. *
:= 'd' 'u' 'm' 'p' 's' 't' 'e' 'r' ; the HEADER string := SixtyFour? + Little? ; architecture := | | | | := * ; the triple := 'r' longLength [bytes] ; the register bank := 't' longLength [bytes] ; the stack := 'l' [long] ; a thread local node := 'g' longAddress longValue := 'n' longAddress longSize intLayout longRefcount longIsa? := 'w' longAddress longValue := 'c' longAddress := intLength [bytes] ; no null byte := intLength [bytes] ; including 0 byte at end := intLength [bytes] ; including 0 byte at end := 'e' */ #endif