1 564ca709 2004-04-19 devnull Changes from the Plan 9 acid (beyond the
2 564ca709 2004-04-19 devnull obvious changes necessary to compile without
3 564ca709 2004-04-19 devnull Ken's compiler and with the new libmach interface).
4 564ca709 2004-04-19 devnull ========================================
6 564ca709 2004-04-19 devnull the input-line print verb is %Z, so that %L can be for locations
8 564ca709 2004-04-19 devnull the register block is explicitly "mapped" at 0 by xget1, xget2, ...
9 564ca709 2004-04-19 devnull for compatibility with old acid, even though libmach
10 564ca709 2004-04-19 devnull doesn't participate in this lie anymore.
12 564ca709 2004-04-19 devnull main accepts pid, file, and core in any order
14 564ca709 2004-04-19 devnull the ptab only records pids (no ctl fd anymore).
16 564ca709 2004-04-19 devnull new builtin sysstop(pid) runs pid until the next syscall
18 564ca709 2004-04-19 devnull map() returns 5-tuples: (name, filename, base, end, offset)
19 564ca709 2004-04-19 devnull filename is new
21 564ca709 2004-04-19 devnull map() expects a 5-tuple too
23 4f2ac1b7 2005-01-23 devnull new acid maps() prints maps nicely.
25 564ca709 2004-04-19 devnull strace expects a list of register names and values like
26 564ca709 2004-04-19 devnull {"PC", *PC, "SP", *SP}
28 564ca709 2004-04-19 devnull strace returns 5-tuples now:
29 564ca709 2004-04-19 devnull {fn, pc, callerpc, paramlist, locallist}
31 564ca709 2004-04-19 devnull new builtin includepipe(cmd) includes the standard output
32 564ca709 2004-04-19 devnull of running cmd.
34 564ca709 2004-04-19 devnull symbols returns 4-tuples now: {name, type, addr, file}
36 564ca709 2004-04-19 devnull new builtin textfile() returns the current set of open text files
37 564ca709 2004-04-19 devnull as a list of {file, base} pairs.
39 564ca709 2004-04-19 devnull new builtin textfile({file, base}) adds a new file's symbols and text
40 564ca709 2004-04-19 devnull offset by base for relocatables.
42 564ca709 2004-04-19 devnull new builtin deltextfile(file) removes a file from the set of open text files.
44 564ca709 2004-04-19 devnull both textfile and deltextfile update symbols.
46 4f2ac1b7 2005-01-23 devnull new types: register is something that when dereferenced gives you
47 4f2ac1b7 2005-01-23 devnull the registers. the Ureg is no longer mapped at 0.
48 4f2ac1b7 2005-01-23 devnull refconst is something that gives a constant when dereferenced.
50 4f2ac1b7 2005-01-23 devnull new builtin register("AX") creates register values
51 4f2ac1b7 2005-01-23 devnull new builtin refconst(0x123) creates refconst values
53 4f2ac1b7 2005-01-23 devnull new builtin var("foo") is equivalent to the variable foo
54 4f2ac1b7 2005-01-23 devnull (it returns foo but can also be used as the lhs of an assignment).
56 4f2ac1b7 2005-01-23 devnull new acid function getregs() returns a list of the current values of registers.
57 4f2ac1b7 2005-01-23 devnull new acid function setregs() sets the current registers to those values.
58 4f2ac1b7 2005-01-23 devnull note that getregs and setregs operate on register locations, not the
59 4f2ac1b7 2005-01-23 devnull register values themselves.
60 4f2ac1b7 2005-01-23 devnull new acid function resetregs() sets registers to register("AX"), etc.
61 4f2ac1b7 2005-01-23 devnull new acid function clearregs() sets all registers to constant -1.
63 4f2ac1b7 2005-01-23 devnull the default register settings are as in resetregs(), not small numbers.
64 4f2ac1b7 2005-01-23 devnull the Ureg is not mapped at 0 anymore.
66 4f2ac1b7 2005-01-23 devnull new acid variables coretext, pids, systype, corefile, cmdline.
68 4f2ac1b7 2005-01-23 devnull new behavior: local variable lookup, stk, etc., use the acid values of registers
69 4f2ac1b7 2005-01-23 devnull (*PC, *SP, and so on), so the thread support code can change the context
70 4f2ac1b7 2005-01-23 devnull completely.
72 4f2ac1b7 2005-01-23 devnull unary + is applicable to more data types and prints more often.
76 564ca709 2004-04-19 devnull yet to be done:
78 564ca709 2004-04-19 devnull elflink has the linking info for elf on linux