3 machbytype, machbyname \- machine-independent access to executables and programs
13 void machbytype(int type)
16 int machbyname(char *name)
22 provides an interface for accessing
23 the executable files and executing images of various architectures
24 and operating systems.
25 The interface is machine-independent, meaning that, for example,
26 Mac OS X core dumps may be inspected using an x86 Linux machine
29 the library is mainly useful for writing debuggers
30 of one sort or another.
32 An architecture is described primarily by a
34 structure, which contains
35 data structures and parameters describing the
36 particular architecture.
37 Most library functions assume that the global variable
39 points at the structure for the architecture being debugged.
40 It is set implicitly by
44 and can be set explicitly by calling
49 There is no operating system-specific structure akin to
51 Typically the choice of operating system on a particular
52 architecture affects only the executable and core dump formats;
53 the various file parsers deduce the operating system from
54 information in the binary files themselves and adjust
58 describe the library functions in detail.
61 describes the manipulation of binary files.
64 describes the interface to address spaces and register sets
65 in executable files and executing programs.
68 describes support for unwinding the stack.
71 describes helper functions for accessing data
72 in a particular byte order.
75 describes the interface to debugging symbol information.
77 .B /usr/local/plan9/src/libmach