X-Git-Url: https://git.saurik.com/apple/objc4.git/blobdiff_plain/7c0e6487d7b67b6bf6c632300ee4b74e8950b051..7af964d1562d70f51a8e9aca24215ac3d83d0624:/runtime/objc-auto-dump.h?ds=sidebyside diff --git a/runtime/objc-auto-dump.h b/runtime/objc-auto-dump.h new file mode 100644 index 0000000..9b531d2 --- /dev/null +++ b/runtime/objc-auto-dump.h @@ -0,0 +1,53 @@ +// +// 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. +// + + +/* + * 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' + + */ +