Commit graph

14 commits

Author SHA1 Message Date
rsc
7b8a3f12c7 remove threadregs; use %# explicitly; use attachargs 2005-02-11 16:54:59 +00:00
rsc
4f2ac1b76b Working on better handling of multithreading in general
and core dumps in particular.  See notes:

new types: register is something that when dereferenced gives you
	the registers.  the Ureg is no longer mapped at 0.
	refconst is something that gives a constant when dereferenced.

new builtin register("AX") creates register values
new builtin refconst(0x123) creates refconst values

new builtin var("foo") is equivalent to the variable foo
	(it returns foo but can also be used as the lhs of an assignment).

new acid function getregs() returns a list of the current values of registers.
new acid function setregs() sets the current registers to those values.
	note that getregs and setregs operate on register locations, not the
		register values themselves.
new acid function resetregs() sets registers to register("AX"), etc.
new acid function clearregs() sets all registers to constant -1.
the default register settings are as in resetregs(), not small numbers.

new acid variables coretext, pids, systype, corefile, cmdline.

new behavior: local variable lookup, stk, etc., use the acid values of registers
	(*PC, *SP, and so on), so the thread support code can change the context
	completely.

unary + is applicable to more data types and prints more often.
2005-01-23 22:48:19 +00:00
rsc
170d47ee1f print core cmd 2005-01-18 20:26:12 +00:00
rsc
9268e33d65 stupid sun 2005-01-14 18:25:05 +00:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
8b549a6214 symopen 2005-01-07 20:45:11 +00:00
rsc
f7b74c1725 FreeBSD tweaks 2004-12-28 17:34:05 +00:00
rsc
f9aa99c72e dumb maps again 2004-06-09 14:22:41 +00:00
rsc
d2cbcb7722 little fixes. 2004-04-20 05:05:16 +00:00
rsc
e637c944fe i hate [] 2004-04-20 01:42:20 +00:00
rsc
13e660708d C
err is a bad name for a variable.
VS: ----------------------------------------------------------------------
2004-04-20 00:20:36 +00:00
rsc
b4a659b6cf clean up when finished. 2004-04-19 23:03:46 +00:00
rsc
c2a9c3bb4e handle pids without files correctly. 2004-04-19 19:34:22 +00:00
rsc
564ca709d0 acid 2004-04-19 19:32:07 +00:00