Commit Graph

446 Commits

Author SHA1 Message Date
rsc d925d643cb sort cores; print stack as command 2005-01-23 22:51:46 +00:00
rsc b030a6c390 change to use attach functions.
$a means switch thread in core dumps.
(maybe that should be $A now?).
2005-01-23 22:48:54 +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 311b2afde9 arg count 2005-01-21 20:23:06 +00:00
rsc 7ca705927e use better versions 2005-01-21 20:21:12 +00:00
rsc f0264abf26 ignore host read eof while exiting 2005-01-20 22:59:50 +00:00
rsc 303cb7c6db todo 2005-01-20 17:53:14 +00:00
rsc 1b0c8a154a use correct yacc 2005-01-19 19:48:58 +00:00
rsc 10b819c6bd add errno 2005-01-19 19:12:48 +00:00
rsc a331ac4c61 do not use shutdown on mac 2005-01-19 16:51:37 +00:00
rsc 9b3d503bac avoid c99 2005-01-19 16:50:07 +00:00
rsc ec41125f3b avoid c99 extensions 2005-01-19 16:48:25 +00:00
rsc 6dfd0c502a try again 2005-01-19 16:44:22 +00:00
rsc c384ebd2ce try again at x86-64 2005-01-19 16:42:34 +00:00
rsc 6987199d12 continue x86-64 2005-01-19 04:05:19 +00:00
rsc 58698c9c12 add 2005-01-18 20:45:12 +00:00
rsc 170d47ee1f print core cmd 2005-01-18 20:26:12 +00:00
rsc 5579b860db check for lack of registers 2005-01-18 20:17:28 +00:00
rsc 2e49032b85 bigger chunking 2005-01-18 20:17:17 +00:00
rsc adbb83845c remove venti for now 2005-01-18 05:25:09 +00:00
rsc 38c10d1abc do not call exits in threaded programs 2005-01-17 21:29:00 +00:00
rsc 87ccb5f9cf nil deref 2005-01-17 15:37:27 +00:00
rsc 91124c1bcf different naming convention 2005-01-16 22:57:50 +00:00
rsc b50e9caf31 handle section (9p) 2005-01-16 21:30:59 +00:00
rsc 32053cdfb3 use EARGF 2005-01-16 21:16:03 +00:00
rsc a20a146803 make vacfs work; thanks to lucho 2005-01-16 21:15:30 +00:00
rsc 3300f9cd89 Long-standing bug in syminit, tickled by placing
initshell before syminit.  Don't understand why syminit
exists at all.
2005-01-15 20:54:41 +00:00
rsc 5ad21e8620 use threadexits instead of exits 2005-01-15 16:34:14 +00:00
rsc 0fdffa38a1 ridiculous precision 2005-01-14 20:53:44 +00:00
rsc 23aada8926 floating percent 2005-01-14 20:21:15 +00:00
rsc 732489da90 no /fd/0 2005-01-14 20:08:31 +00:00
rsc cb98c6f854 stupid sun 2005-01-14 18:46:35 +00:00
rsc 7ea6c4fcbe try to fix sun 2005-01-14 18:38:20 +00:00
rsc 147e5e8702 stupid sun 2005-01-14 18:35:33 +00:00
rsc f940ad0699 stupid programmer 2005-01-14 18:35:17 +00:00
rsc 6b32f96d74 smart sun 2005-01-14 18:33:54 +00:00
rsc d7925b13e3 stupid sun 2005-01-14 18:32:36 +00:00
rsc 9268e33d65 stupid sun 2005-01-14 18:25:05 +00:00
rsc 0dc9950215 stupid sun 2005-01-14 18:21:12 +00:00
rsc 2d3f13df35 not reached 2005-01-14 17:57:32 +00:00
rsc 459eae0c70 fix unsharp 2005-01-14 17:40:02 +00:00
rsc 359c1e017e works on Linux 2.6 2005-01-14 04:24:09 +00:00
rsc 78e51a8c66 checkpoint 2005-01-14 03:45:44 +00:00
rsc 3940506bcc forgotten files 2005-01-13 04:56:07 +00:00
rsc 357621cd82 more small changes 2005-01-13 04:50:11 +00:00
rsc c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc a9eaaa03e0 maintain $path and $PATH simultaneously 2005-01-12 16:59:50 +00:00
rsc c70667367f get rid of the 9foo commands in favor of the 9 script 2005-01-11 20:57:41 +00:00
rsc 1c096fa40a better cleanup of tmp files 2005-01-11 20:57:00 +00:00
rsc 63abaa8216 fix cflags 2005-01-11 19:46:56 +00:00