Commit Graph

424 Commits

Author SHA1 Message Date
Bob Weinand
89a0d3c2b2 Merge branch 'master' into xml-protocol
Conflicts:
	phpdbg_lexer.c
	phpdbg_prompt.c
2014-10-08 00:27:12 +02:00
Bob Weinand
8bc2881260 Merge branch 'master' into xml-protocol
Conflicts:
	phpdbg.c
	phpdbg.h
	phpdbg_cmd.c
	phpdbg_cmd.h
	phpdbg_frame.c
	phpdbg_info.c
	phpdbg_list.c
	phpdbg_print.c
	phpdbg_prompt.c
	phpdbg_utils.c
	phpdbg_utils.h
	phpdbg_watch.c
2014-10-07 13:08:30 +02:00
krakjoe
f545ef48eb fix case insensitivity for registered functions 2014-10-07 11:30:26 +01:00
Bob Weinand
6f584e22fe Merge branch 'webdata_transfer' 2014-10-07 00:45:29 +02:00
Bob Weinand
fb76316819 Add request_id possibility for xml output 2014-10-06 11:26:08 +02:00
Bob Weinand
8b6d707df0 Use PHP 5.4 compatible zend_execute in #if 2014-10-05 13:57:35 +02:00
Bob Weinand
2f6317c483 Fix infinite recursion issues (segfaults) 2014-10-05 13:33:31 +02:00
Bob Weinand
38e981bbdc Fix infinite recursion issues (segfaults) 2014-10-05 13:29:56 +02:00
Bob Weinand
bedd503c3f Consistency in breakpoint tags, <run> => <stop> 2014-10-05 12:33:24 +02:00
Bob Weinand
62465b6d82 Fix issues with path names and cwd 2014-10-04 23:30:57 +02:00
Bob Weinand
19cdad194b Add transfer of output back to webserver and merge master in
Conflicts:
	config.m4
	phpdbg.c
	phpdbg.h
	phpdbg_cmd.c
	phpdbg_prompt.c
2014-10-04 23:21:34 +02:00
Bob Weinand
323e59adfc Added support for a restricted ev (variables only) in async safe contexts 2014-10-03 12:43:32 +02:00
Bob Weinand
8af0870d72 Made some functions async safe and provide interactive shell in signal handler
Fixes also (as a side-effect) a possible bug in list function when included files become unreachable after loading by caching the file contents
This is already pretty stable; a (restricted) ev and sh may follow.
2014-10-03 01:29:41 +02:00
Bob Weinand
7911b6405c Remove accidental insertion of a single "s" 2014-10-02 11:18:36 +02:00
Bob Weinand
b183494f37 Send a \x03 during execution to interrupt (POSIX only) 2014-09-28 02:57:12 +02:00
Bob Weinand
aeb7508959 Fix typo: inactivee => inactive 2014-09-25 22:01:31 +02:00
Bob Weinand
1ad0287499 Make phpdbg_prompt.c xml messages more consistent 2014-09-25 15:28:25 +02:00
Bob Weinand
5ba53cac06 Fix tests 2014-09-25 01:29:08 +02:00
Bob Weinand
beb9520039 Merge branch 'master' into xml-protocol
Conflicts:
	phpdbg_prompt.c
2014-09-23 16:51:18 +02:00
Bob Weinand
e2329bc704 Add notification at script end 2014-09-23 13:04:53 +02:00
Bob Weinand
ca635e4884 A few general segfault fixes 2014-09-22 00:52:22 +02:00
Bob Weinand
bbeccd7474 First draft of an xml protocol 2014-09-21 04:17:19 +02:00
Bob Weinand
554b30389e Fix segfaults, reorder files and set filename to exec 2014-09-10 16:03:26 +02:00
Bob Weinand
c35bb34608 Add webhelper extension and support for loading extensions
New phpdbg commands:
dl [path] - loads module / Zend extension
wait - waits for incoming connection from a phpdbg_webhelper module

Webhelper module is a UNIX domain socket to which a SAPI with the phpdbg_webhelper module loaded will write to the socket information about its whole environment.
phpdbg can then run the request locally [TODO: write the request back to the sender]
2014-09-10 16:03:26 +02:00
Bob Weinand
219beac36b Fix readline/libedit (Thanks to @remicollet) 2014-06-29 11:26:03 +02:00
Bob Weinand
7cfe696371 Fix ZTS build 2014-06-09 00:02:10 +02:00
Bob Weinand
4c79fe6afa Updated parser & leer to be usable with re2c
Fixes some weird temporary compilation errors too
2014-06-08 20:34:30 +00:00
Bob Weinand
447ec05f31 Fixed infinite loop when quitting (sometimes) 2014-04-21 23:14:06 +02:00
krakjoe
c1e12316f1 fixup help, behaviour of step command when not executing 2014-04-21 22:00:21 +01:00
krakjoe
e9668d4ce8 buffer input to repeat commands 2014-04-21 21:43:19 +01:00
Bob Weinand
577c6ed0ce Fixed stepping 2014-04-20 20:20:59 +02:00
Bob Weinand
422dc49c0d Merge branch 'master' of https://github.com/krakjoe/phpdbg
Conflicts:
	phpdbg_help.c
	phpdbg_prompt.c
2014-04-20 19:55:44 +02:00
krakjoe
f96feea00c step by line and opcode modes preserved, set stepping added, help updated 2014-04-20 18:46:35 +01:00
krakjoe
373b9ecd05 rename next to continue, cleanup help 2014-04-20 17:10:52 +01:00
Bob Weinand
e097919f16 Stepping is now line by line with gdb style command 2014-04-20 16:47:24 +02:00
Bob Weinand
5a7497904e Breakpoints now hit only once if line was not switched 2014-04-20 13:25:28 +02:00
Bob Weinand
508c379428 Added error on compile failure in exec cmd 2014-04-20 12:54:50 +02:00
krakjoe
fd74024a49 remove compile command 2014-04-19 21:22:09 +01:00
Bob Weinand
a0ee96289b Commented out a few PHPDBG_IS_QUITTING checks to fix bug
If it does not work, please revert...
2014-04-16 20:55:41 +02:00
Bob Weinand
2ab2b74af3 Also check for length to not segfault 2014-04-16 20:55:02 +02:00
Bob Weinand
0e8637441c Fixed segfault when input == NULL 2014-04-15 15:52:46 +00:00
Bob Weinand
eae91d9de7 Added help 2014-04-13 17:34:27 +02:00
krakjoe
faa7e3264e fix compat with lexer stuff 2014-04-13 11:42:47 +01:00
krakjoe
42355fb9bf Merge branch 'master' of https://github.com/krakjoe/phpdbg into watchpoints_recursive
Conflicts:
	config.m4
	phpdbg.c
	phpdbg_prompt.c
2014-04-13 11:07:38 +01:00
krakjoe
0dc9be6f1e cleanup 2014-04-13 08:48:59 +01:00
krakjoe
8c23b038cd fix moar 2014-04-13 08:43:19 +01:00
krakjoe
4387723ef7 fix argc/argv 2014-04-13 08:34:16 +01:00
krakjoe
65984df220 merge master 2014-04-13 08:09:53 +01:00
krakjoe
ef86b57f3b Merge branch 'master' of https://github.com/krakjoe/phpdbg into lexer
Conflicts:
	phpdbg_prompt.c
2014-04-13 08:06:42 +01:00
Bob Weinand
3db29ee439 Added support for command line arg passing
"phpdbg -- arg" in shell
"run arg" in phpdbg prompt
2014-04-13 00:27:46 +02:00