Commit Graph

401 Commits

Author SHA1 Message Date
Felipe Pena
44168c36a8 Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-17 22:56:07 -02:00
Felipe Pena
2941a4ab50 - print command has optional arguments 2013-11-17 22:55:52 -02:00
krakjoe
f9a66f0d44 brifer 2013-11-18 00:42:07 +00:00
krakjoe
e97fcb4592 try another layout 2013-11-18 00:27:21 +00:00
Joe Watkins
27ae287c49 fix window size on windows
make window as big as possible on windows for readability
2013-11-18 00:23:04 +00:00
Felipe Pena
35601e6fec - Fix argument information 2013-11-17 20:05:21 -02:00
Felipe Pena
d054172a33 - Clean up command macros
- Added flag to specify no argument, required argument and optional argument
2013-11-17 19:01:41 -02:00
Felipe Pena
33098232dc - Fix conflict 2013-11-17 14:13:13 -02:00
Felipe Pena
478446b665 - Added macro for trailling command 2013-11-17 14:10:43 -02:00
krakjoe
02e3718ef9 fix segfault when autoglobals are not properly setup 2013-11-17 16:06:30 +00:00
Felipe Pena
17cc942e7c Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-17 13:42:46 -02:00
Felipe Pena
ca32181b1c - Initial code for info command 2013-11-17 13:42:34 -02:00
krakjoe
2ba9e9306f leave function + help 2013-11-17 15:39:23 +00:00
krakjoe
e2f20c57c1 finish? 2013-11-17 15:01:22 +00:00
Felipe Pena
f2b8cdc5be - Added finish/f command 2013-11-17 11:59:21 -02:00
Felipe Pena
f51a08b6d6 - Fix conflict 2013-11-17 10:12:10 -02:00
Felipe Pena
4eb20ecfe7 - Drop unneeded parenthesis 2013-11-17 10:10:02 -02:00
krakjoe
ced99e1b1d fix whitepsace in here first 2013-11-17 12:07:01 +00:00
Felipe Pena
dd25fb44fd - Fix conflict 2013-11-17 09:28:14 -02:00
krakjoe
dcead8ea90 add highlight param to file listing 2013-11-17 11:11:09 +00:00
krakjoe
22ae0d51a1 add print exec command to show current execution context instructions
make phpdbg_compile public
2013-11-17 09:30:44 +00:00
krakjoe
434949c5b4 consistency in prompt/list, do not return FAILURE from command handlers 2013-11-16 23:35:11 +00:00
krakjoe
8f4f4f0628 uniform code in print.c 2013-11-16 23:25:33 +00:00
krakjoe
a28ea698b8 cleanup in list ... last time 2013-11-16 23:11:39 +00:00
krakjoe
7bc369399b switches in list.c, be consistent in all command handlers 2013-11-16 22:58:30 +00:00
krakjoe
b424771ce8 stat before setting breakpoints on files
default switch case for command handlers
trace route through handler tree for debugging etc **selected
2013-11-16 22:40:01 +00:00
krakjoe
f0ed181081 get rid of No Expression Provided messages, not required anymore 2013-11-16 21:25:22 +00:00
krakjoe
593e7b28e8 stat execution context and check it is a regular file or symlink 2013-11-16 21:23:14 +00:00
krakjoe
5a0422d8c6 establish relationship between parent and child commands
extend alias help
automatically invoke child commands
2013-11-16 20:57:10 +00:00
krakjoe
80b82cd538 add list class and method commands
update help text to be more specific
2013-11-16 18:53:12 +00:00
krakjoe
7acf88322b fix is_class_method (needs revision)
don't free last (needs revision)
2013-11-16 14:55:53 +00:00
krakjoe
cf58c7cea3 make handlers take phpdbg_param_t 2013-11-16 14:34:49 +00:00
krakjoe
10ec0ee8b1 move phpdbg_param_t to phpdbg.c|h
add string length and type to param_t (made struct instead of union)
typedef enumerated param types
add some error messages when command recieves unsupported values
2013-11-16 13:15:00 +00:00
Felipe Pena
bff5abfd95 - Fixed possible memleak 2013-11-16 10:02:35 -02:00
Felipe Pena
515f7806c5 - Fixed repeat-last-command feature for next and until command 2013-11-16 09:50:25 -02:00
krakjoe
403072e488 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-16 11:12:22 +00:00
krakjoe
19ada893cb add phpdbg_debug function and --enable-phpdbg-debug configure option
added debug statement to do_cmd in preparation for updates
2013-11-16 11:11:47 +00:00
Felipe Pena
25b9a366e4 - Implemented issue #11 (until command) 2013-11-16 08:59:50 -02:00
krakjoe
7a56e9bc84 fix segfault on some implementations of atoi 2013-11-15 20:52:48 +00:00
krakjoe
24c6e3c317 add oplog status to context information on print command 2013-11-15 16:12:27 +00:00
krakjoe
38ed8d89d0 remove additional switch 2013-11-15 15:34:48 +00:00
krakjoe
a3f2137173 ... 2013-11-15 15:26:51 +00:00
krakjoe
b63fd6d261 embed code in .phpdbginit 2013-11-15 14:53:40 +00:00
krakjoe
aeeba85221 implement 5.4 support 2013-11-15 11:19:26 +00:00
krakjoe
76ec5635a4 include conditional breakpoints in out 2013-11-14 23:06:31 +00:00
krakjoe
f2212c05c7 add opline logging and setup including command line option 2013-11-14 21:10:44 +00:00
krakjoe
d948ea62cb correction 2013-11-14 18:51:45 +00:00
krakjoe
cd956373ba help for command line options 2013-11-14 18:50:34 +00:00
krakjoe
1ee3950747 implement init file and command line options 2013-11-14 16:58:50 +00:00
krakjoe
fb1ee0bbf6 ... 2013-11-14 16:17:22 +00:00
krakjoe
e4fefee020 fix stepping 2013-11-14 16:14:20 +00:00
krakjoe
6a3194a47d move listing commands out to their own command list
add TSRMLS_CC in clear_param for consistency
2013-11-14 15:46:06 +00:00
krakjoe
7763b0b383 phpdbg_init from file & command line option (no impl yet) 2013-11-14 14:14:13 +00:00
krakjoe
dcb6906bc4 fix crash when cleaning environment
fix crash when specifying exec on command line
2013-11-14 11:13:21 +00:00
krakjoe
695decf7e1 TSRMLS_CC missing 2013-11-14 07:46:30 +00:00
Felipe Pena
2475207588 - Missing break 2013-11-13 22:30:03 -02:00
Felipe Pena
782615ac1c - Use realpath on PHPDBG_G(exec) 2013-11-13 21:36:02 -02:00
Felipe Pena
4c59ad6e2e - Added parameter parsing functions 2013-11-13 21:13:41 -02:00
Felipe Pena
9840c6ae97 - Unnesting some code 2013-11-13 19:43:54 -02:00
Felipe Pena
b81236d694 - Removed double checking + ws changes 2013-11-13 19:31:33 -02:00
krakjoe
3f927019cb updates for windows 2013-11-13 21:15:45 +00:00
krakjoe
0bc987c9b4 fix clashing 2013-11-13 18:17:06 +00:00
krakjoe
375c90324c ... 2013-11-13 17:39:53 +00:00
krakjoe
188f4d3c51 aliasing commands 2013-11-13 17:35:51 +00:00
krakjoe
f6d45107b2 show conditionals 2013-11-13 14:50:13 +00:00
krakjoe
072622e799 don't allow conditionals to be executed by eval()'d code 2013-11-13 14:41:25 +00:00
krakjoe
57ae58c9bf support conditional breakpoints 2013-11-13 14:22:01 +00:00
krakjoe
5e266f34fc non readline fixes 2013-11-13 08:05:26 +00:00
krakjoe
99bbc8e811 method printer 2013-11-13 05:36:01 +00:00
krakjoe
88ad7f9279 more detailed opline 2013-11-13 04:47:07 +00:00
krakjoe
63a0c1ca15 ... 2013-11-13 04:34:02 +00:00
krakjoe
a6d08af06b fix leak from readline 2013-11-13 04:20:39 +00:00
krakjoe
2464629b5c fix 2013-11-13 02:50:00 +00:00
krakjoe
fec3b77a0f ... 2013-11-13 02:48:22 +00:00
krakjoe
0ade5f0d9d fix list length lookup 2013-11-13 02:43:09 +00:00
krakjoe
94e887cf2a ... 2013-11-13 02:39:02 +00:00
krakjoe
68cff82d8b class printer 2013-11-13 01:35:39 +00:00
krakjoe
43c2748dce fix bug in passing correct expression length
add class printer (half done)
2013-11-13 00:36:47 +00:00
krakjoe
5204026308 housework 2013-11-12 23:54:41 +00:00
krakjoe
ce78503e15 remove more printf 2013-11-12 23:31:46 +00:00
krakjoe
afa216fd7e deploy _write 2013-11-12 23:17:37 +00:00
krakjoe
a712674964 added phpdbg_write to replace all the printf 2013-11-12 23:10:53 +00:00
Felipe Pena
5d435cb831 - Spred more some macro usage instead of phpdbg_print() 2013-11-12 20:48:52 -02:00
Felipe Pena
27f640d879 - Added phpdbg_notice() and phpdbg_error() 2013-11-12 20:39:39 -02:00
krakjoe
c43d5a558f ... 2013-11-12 16:04:41 +00:00
krakjoe
803303057a fix output from print command to show all breakpoints 2013-11-12 15:51:30 +00:00
Felipe Pena
b133dbefe0 Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-12 11:34:09 -02:00
Felipe Pena
af90b6d5c7 - Improved breakpoint code 2013-11-12 11:33:51 -02:00
krakjoe
4269b29c03 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-12 13:23:54 +00:00
krakjoe
277b10a5c0 ... 2013-11-12 13:21:55 +00:00
Felipe Pena
fdf26eaa0f - Removed name member to opline breakpoints 2013-11-12 11:07:35 -02:00
Felipe Pena
ffad3fa211 - Implemented "break N" where N is the line number on the current file 2013-11-12 10:58:19 -02:00
krakjoe
7f743e1fca ... 2013-11-12 09:52:59 +00:00
krakjoe
1d373be4fb updates to helpers 2013-11-12 09:26:26 +00:00
krakjoe
c00abb0e75 printer commands 2013-11-12 08:26:11 +00:00
krakjoe
f566a6136b additional list option, class methods 2013-11-12 06:43:23 +00:00
krakjoe
78418cc38c ... 2013-11-12 06:04:32 +00:00
krakjoe
4112330bb5 colourfulness 2013-11-12 06:03:37 +00:00
krakjoe
6c317b771e more command line options 2013-11-12 04:53:04 +00:00
krakjoe
33f0502f19 readline support #6 2013-11-12 04:20:14 +00:00
krakjoe
ed690e1899 ... 2013-11-12 02:59:10 +00:00
krakjoe
69a8403175 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-12 02:50:44 +00:00
krakjoe
b9c1c872f6 ... 2013-11-12 02:50:24 +00:00
Felipe Pena
6658f58d4a - Added phpdbg_is_empty function 2013-11-12 00:50:15 -02:00
krakjoe
79ab9a3f74 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-12 02:35:29 +00:00
krakjoe
8c91727484 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-12 02:35:07 +00:00
Felipe Pena
bd432b995e - Update list cmd description 2013-11-12 00:34:10 -02:00
krakjoe
c7b51537a0 fix 2013-11-12 02:29:56 +00:00
Felipe Pena
629b96295e - Fix conflict 2013-11-12 00:25:30 -02:00
Felipe Pena
e32d511cec - Added "list func" support 2013-11-12 00:19:43 -02:00
krakjoe
d7e09f9564 blurb/version/issues string 2013-11-12 02:04:54 +00:00
krakjoe
c2365d8283 compress globals 2013-11-12 01:51:50 +00:00
krakjoe
8de21cb2e2 [Not running] 2013-11-12 01:31:51 +00:00
krakjoe
8586a1b4cc ... 2013-11-12 01:27:48 +00:00
krakjoe
749e0cfc36 condense globals
introduce flags
sensible silence and stepping
2013-11-12 01:24:53 +00:00
krakjoe
0a6804a986 ... 2013-11-12 00:47:27 +00:00
krakjoe
95d33c18a0 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-12 00:28:48 +00:00
krakjoe
e0cbd92fa4 break on class methods
don't dtor eval'd retval
more reliable break on methods
2013-11-12 00:27:48 +00:00
Felipe Pena
bbc35b60f9 - Added check for no context file 2013-11-11 22:24:24 -02:00
Felipe Pena
36d2329187 - Added initial code for list command 2013-11-11 21:40:03 -02:00
Felipe Pena
dd4e962c56 - WS 2013-11-11 20:02:34 -02:00
krakjoe
42eaa989af separation etc 2013-11-11 17:19:05 +00:00
krakjoe
5ef19b1b45 ws 2013-11-11 17:12:31 +00:00
krakjoe
fb815caf7a fix segfault on empty eval 2013-11-11 17:09:08 +00:00
krakjoe
f62b47c9ff fix opcode missing on eval 2013-11-11 17:06:30 +00:00
krakjoe
3c644612af typo 2013-11-11 17:01:33 +00:00
krakjoe
3e3a7babad stop multiple executions from occuring at once, #5 2013-11-11 15:54:33 +00:00
krakjoe
34ae94ad9a phpdbg_break userland 2013-11-11 14:33:53 +00:00
krakjoe
5fdae4612b ... 2013-11-11 14:07:07 +00:00
krakjoe
56957d9e25 output [] around phpdbg text 2013-11-11 14:03:14 +00:00
krakjoe
207e54a1c5 ... 2013-11-11 13:31:41 +00:00
krakjoe
764d7d492c fix break on opline 2013-11-11 13:04:21 +00:00
krakjoe
28848919cf break opline help 2013-11-11 12:07:11 +00:00
krakjoe
67dc98732e break on opline 2013-11-11 11:54:41 +00:00
krakjoe
cb24989f06 updates to break setting 2013-11-11 09:36:33 +00:00
krakjoe
3955dcf673 more output on setting break points
output breaks with print command
2013-11-11 09:14:30 +00:00
krakjoe
5f82f002f0 clean not destroy included files
remove argc, argv from phpdbg_interactive, unused
2013-11-11 08:08:26 +00:00
krakjoe
b77508f250 noquit on fatal errors
clean command to clear environment
2013-11-11 08:02:04 +00:00
krakjoe
aba249e5c7 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 22:46:49 +00:00
krakjoe
7de0b76ba8 ... 2013-11-10 22:44:28 +00:00
Felipe Pena
8ffa4025fb - Cosmetics 2013-11-10 20:04:22 -02:00
Felipe Pena
7886665b52 - Cosmetic changes 2013-11-10 19:57:43 -02:00
krakjoe
587003ee48 exec last command automatically on enter 2013-11-10 21:49:37 +00:00
Felipe Pena
816925c7da Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-10 19:39:07 -02:00
Felipe Pena
d141bf4ea8 - Get rid llist from symbol breakpoint 2013-11-10 19:38:58 -02:00
krakjoe
493e81e4c7 ... 2013-11-10 21:29:14 +00:00
krakjoe
fedd47e383 ... 2013-11-10 21:28:12 +00:00
krakjoe
9ba19e8224 quiet 2013-11-10 21:23:18 +00:00
krakjoe
7d99241455 ... 2013-11-10 21:12:41 +00:00
krakjoe
1591b0e5f6 remove cont 2013-11-10 21:09:35 +00:00
krakjoe
6203c96061 ... 2013-11-10 21:07:29 +00:00
krakjoe
05c9f82a15 ... 2013-11-10 20:59:35 +00:00
krakjoe
52f9c52475 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 20:30:32 +00:00
Felipe Pena
fb4f94c52c - Improved phpdbg_set_breakpoint_symbol function 2013-11-10 18:30:24 -02:00
krakjoe
dd141fa085 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 20:30:18 +00:00
Felipe Pena
3414680557 - Improved phpdbg_set_breakpoint_file function 2013-11-10 18:24:13 -02:00
Felipe Pena
5b6982796d - Renamed breakpoint find functions 2013-11-10 18:06:19 -02:00
Felipe Pena
20f37407e1 - Added separated file to opcode decode function 2013-11-10 18:01:09 -02:00
krakjoe
663a13635a fix symbol breakpoints 2013-11-10 18:56:19 +00:00
krakjoe
fa63ecbba9 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 18:29:04 +00:00
Felipe Pena
aedf45252f - WS changes 2013-11-10 16:29:05 -02:00
krakjoe
cc85f285c6 print opcode names 2013-11-10 18:28:50 +00:00
Felipe Pena
ddf5c42e2d - Cosmetic changes 2013-11-10 16:21:49 -02:00
Felipe Pena
226052fb8a - Simplify code 2013-11-10 16:15:00 -02:00
Felipe Pena
a7309b6d25 Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-10 16:10:38 -02:00
Felipe Pena
7d43677b1f - Fix code 2013-11-10 16:10:23 -02:00
krakjoe
4bfbdf55dc next not quitting when not stepping 2013-11-10 18:08:08 +00:00
Felipe Pena
defc4c3180 - Added separated file to handle breakpoint feature 2013-11-10 16:06:41 -02:00
krakjoe
38883e7cbb Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 18:05:30 +00:00
krakjoe
4d127e4afb print_opline function to decode opline 2013-11-10 18:05:11 +00:00
Felipe Pena
22f0ff6c12 - Fix conflict 2013-11-10 15:51:20 -02:00
Felipe Pena
16930d85f8 - Initial code for breakpoint on function 2013-11-10 15:49:25 -02:00
krakjoe
c6f443db2e improve output from eval() 2013-11-10 16:47:39 +00:00
krakjoe
5f6c416b14 consistency 2013-11-10 16:34:12 +00:00
krakjoe
782ea75c9e ... 2013-11-10 16:33:35 +00:00
krakjoe
5cca4190f4 fix interference while quitting 2013-11-10 16:30:36 +00:00
krakjoe
9a15ea4d58 ... 2013-11-10 16:06:15 +00:00
krakjoe
22d85c6a63 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 16:05:23 +00:00
krakjoe
940f4e27de backtrace 2013-11-10 15:49:35 +00:00
Felipe Pena
53f4201566 Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-10 13:47:37 -02:00
Felipe Pena
6069121e23 - Added llist dtor 2013-11-10 13:47:28 -02:00
krakjoe
48f9db90dd cont 2013-11-10 15:32:24 +00:00
krakjoe
2770068e76 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 15:21:48 +00:00
Felipe Pena
9552817864 - Get the realpath on break command 2013-11-10 13:21:20 -02:00
krakjoe
1b41ab2e34 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2013-11-10 15:16:54 +00:00
krakjoe
2f9b34d4b6 backtrace 2013-11-10 15:16:45 +00:00
Felipe Pena
a6d573cd89 Merge branch 'master' of github.com:krakjoe/phpdbg 2013-11-10 13:12:09 -02:00
Felipe Pena
23cfc8ed35 - More work on file:line breakpoint 2013-11-10 13:11:56 -02:00
krakjoe
ac5063468a ... 2013-11-10 14:49:52 +00:00
krakjoe
2977840a4a eval() 2013-11-10 14:43:46 +00:00
Felipe Pena
d772009921 - Breakpoint initial work 2013-11-10 12:36:30 -02:00
krakjoe
5c866a9f13 stepping 2013-11-10 14:28:14 +00:00
krakjoe
c6cb411d39 execution 2013-11-10 13:01:46 +00:00
Felipe Pena
a366eadee2 - Renamed brake to break 2013-11-10 09:48:01 -02:00
Felipe Pena
9dd3e54351 - Cosmetic changes 2013-11-10 09:36:57 -02:00
krakjoe
b978c20f63 +compile 2013-11-10 11:35:59 +00:00
krakjoe
6df19b3aa2 ... 2013-11-10 11:03:29 +00:00
krakjoe
2089caed53 bit more work on menu
implement helper menu
name some macros to help with declarations (sorry Felipe :))
2013-11-10 10:44:42 +00:00
Felipe Pena
2bda09abc6 - Added prototype for non-static function, fixed typo and staticfy command handler 2013-11-09 23:42:41 -02:00
Felipe Pena
19c16083a7 - WS change 2013-11-09 23:38:17 -02:00
Felipe Pena
612d6b2582 - Added initial code for a simple prompt 2013-11-09 23:30:32 -02:00