Commit Graph

844 Commits

Author SHA1 Message Date
rsc d925d643cb sort cores; print stack as command 2005-01-23 22:51:46 +00:00
rsc 4a727cddff less verbose 2005-01-23 22:51:01 +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 4a62371140 Add searchpath(). 2005-01-23 22:33:59 +00:00
rsc dd944ec72a Start working through proper handling of pthreads when
debugging Linux core dumps.  Pthreads for active processes
is still not supported, nor are other systems.
2005-01-23 22:33:04 +00:00
rsc a0e8d02d09 Apparently SuSE 9.1's X distribution uses even bigger
buffers than the standard ones.  64kB appears to be enough
for a stack in that case, but let's just go nuts and make
the stacks enormous, so that it takes a few more doublings
of X's stack needs before we run into this problem again.

The VM system should take care of not actually using most
of the memory anyway.
2005-01-23 16:02:04 +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 6135dd6916 do not close -1 2005-01-19 03:53:20 +00:00
rsc 803292c631 proccreate race 2005-01-18 20:53:12 +00:00
rsc 1c8159def5 free hdr->cmd 2005-01-18 20:49:25 +00:00
rsc 1bdf170864 extract cmd in right place 2005-01-18 20:49:11 +00:00
rsc 58698c9c12 add 2005-01-18 20:45:12 +00:00
rsc 20173464d2 add core cmd 2005-01-18 20:26:26 +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 515b6e5bff add threadgetname 2005-01-18 20:17:12 +00:00
rsc 361e279c59 bug fixes 2005-01-18 20:15:18 +00:00
rsc 668b32b76c explain nptl stuff 2005-01-18 18:14:14 +00:00
rsc 9a4f7bced2 explain nptl stuff 2005-01-18 18:13:24 +00:00
rsc 3d867865ef better exit handling 2005-01-18 18:13:16 +00:00
rsc daefa1a92f add fsseek 2005-01-18 18:11:39 +00:00
rsc 0ebee0de76 add x86 64 2005-01-18 05:57:56 +00:00
rsc 8650250482 64-bit nonsense 2005-01-18 05:57:35 +00:00
rsc fc7c0c592a better comment 2005-01-18 05:43:41 +00:00
rsc adbb83845c remove venti for now 2005-01-18 05:25:09 +00:00
rsc 4753f0691a more exits 2005-01-17 21:30:15 +00:00
rsc 7a2c88509b allow config to override kernel version 2005-01-17 21:30:05 +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 0b561695d6 useful warning comment 2005-01-16 21:31:21 +00:00
rsc b50e9caf31 handle section (9p) 2005-01-16 21:30:59 +00:00
rsc 10f14b04f3 update return interface 2005-01-16 21:28:44 +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 17465d1425 must use tcp explicitly 2005-01-16 21:13:23 +00:00
rsc a0d2173ce4 too big fd 2005-01-16 17:37:11 +00:00