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
57 The supported architectures are
63 (IBM PowerPC, typically running
67 describe the library functions in detail.
70 describes some convenience routines for attaching to
71 processes and core files.
74 describes the manipulation of binary files.
77 describes the interface to address spaces and register sets
78 in executable files and executing programs.
81 describes support for unwinding the stack.
84 describes helper functions for accessing data
85 in a particular byte order.
88 describes the interface to debugging symbol information.