Commit graph

9 commits

Author SHA1 Message Date
Russ Cox
4a000a28d3 merge 2012-03-05 16:36:31 -05:00
Russ Cox
443d628838 libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
Russ Cox
0c9c620f39 fix type-punned pointer warnings from gcc
R=rsc
http://codereview.appspot.com/396042
2010-03-10 14:50:33 -08:00
rsc
7b8a3f12c7 remove threadregs; use %# explicitly; use attachargs 2005-02-11 16:54:59 +00:00
rsc
281c90a5be more pthread 2005-02-11 00:01:49 +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
a0f1e21ff9 make things work on SunOS 2004-04-20 02:03:38 +00:00
rsc
e637c944fe i hate [] 2004-04-20 01:42:20 +00:00
rsc
564ca709d0 acid 2004-04-19 19:32:07 +00:00