krakjoe
f92de15a1c
align
2013-11-20 13:56:31 +00:00
krakjoe
baff6e1d65
tidy alias menu
2013-11-20 13:51:47 +00:00
krakjoe
d5388bac79
fix shell command to use new input
2013-11-20 13:43:58 +00:00
Felipe Pena
febeeea4ba
- Fix conflict
2013-11-20 11:29:58 -02:00
Felipe Pena
a0b75a24e5
- Passing input ptr to handlers
2013-11-20 11:28:41 -02:00
krakjoe
c10796e7e9
zend expects this to be clean memory
2013-11-20 13:00:28 +00:00
krakjoe
38679621bb
Merge branch 'master' of https://github.com/krakjoe/phpdbg
2013-11-20 12:51:57 +00:00
krakjoe
cad9fb826b
registered functions able to accept any number of arguments
2013-11-20 12:49:47 +00:00
Felipe Pena
4ad50af9ac
- CS
2013-11-20 10:10:27 -02:00
krakjoe
80386a329b
improve R
2013-11-20 10:49:39 +00:00
krakjoe
6417e472b4
use new input handling everywhere
2013-11-20 10:04:05 +00:00
krakjoe
3709ea995c
Merge branch 'master' of https://github.com/krakjoe/phpdbg
2013-11-19 21:58:03 +00:00
krakjoe
b65cef950a
more on functions
2013-11-19 21:54:58 +00:00
Felipe Pena
4672313057
- Removed unused var
2013-11-19 19:40:01 -02:00
krakjoe
5af371409c
debugging new input stuff
2013-11-19 20:27:23 +00:00
krakjoe
cfc62cdbe0
cleanup
2013-11-19 19:24:21 +00:00
krakjoe
8ac46de2cf
argc/argv started
2013-11-19 17:18:58 +00:00
krakjoe
71811f1f7f
include registered functions in help for register command
2013-11-19 14:28:57 +00:00
krakjoe
b237401167
fix broken repeat command
2013-11-19 14:06:33 +00:00
krakjoe
b2a19a42d1
removed a loop
2013-11-19 13:22:46 +00:00
krakjoe
73e7f5c645
more tidy
2013-11-19 13:00:04 +00:00
krakjoe
d906613eb5
tidy up reading input, avoid leaks, restore sanity
2013-11-19 12:39:48 +00:00
krakjoe
2ebb9e48be
better call register
2013-11-19 10:56:50 +00:00
krakjoe
7c077f7040
ordering
2013-11-19 01:56:33 +00:00
krakjoe
fb6df2fa08
Merge branch 'master' of https://github.com/krakjoe/phpdbg
2013-11-19 01:50:38 +00:00
krakjoe
9ebc61f282
help for register better formatting for help menu
2013-11-19 01:48:21 +00:00
Felipe Pena
db8f825414
- Fix build
2013-11-18 23:30:57 -02:00
krakjoe
0250a0992c
don't dtor that
2013-11-19 01:22:02 +00:00
krakjoe
599047f153
register functions, needs work
2013-11-19 01:18:43 +00:00
krakjoe
a582d2793d
fix memory errors
2013-11-18 21:59:42 +00:00
krakjoe
9b30877d56
fix memory error
2013-11-18 20:20:07 +00:00
krakjoe
9190e783a2
no more allocing params
2013-11-18 18:05:37 +00:00
krakjoe
75bc53d7de
avoid leaks from parameters
2013-11-18 17:51:14 +00:00
krakjoe
7a30a79fd4
improve uncaught exception handler
2013-11-18 17:00:26 +00:00
Felipe Pena
4a1cb2262e
- Removed unused variables
2013-11-18 12:09:25 -02:00
krakjoe
8588f5cc84
compress text/tidy up
2013-11-18 13:23:28 +00:00
krakjoe
e7e3dbccbf
shell command
2013-11-18 12:46:10 +00:00
krakjoe
81e1f70e52
change message, it's wrong
2013-11-18 12:09:01 +00:00
krakjoe
858629b600
destroy displayed exception and reset eg
2013-11-18 12:06:06 +00:00
krakjoe
57b67d71b0
display uncaught exceptions
2013-11-18 11:51:41 +00:00
krakjoe
5cc88ca88a
fix stack entry detection for symbol breakpoints
...
count yield as return for leave/finish
2013-11-18 11:04:24 +00:00
krakjoe
c70c156ca1
seek ZEND_YIELD
2013-11-18 10:32:33 +00:00
krakjoe
775376b362
better way to detect leave/finish
2013-11-18 03:18:37 +00:00
krakjoe
8ada4342a4
don't be lazy, scan for ZEND_RETURN when setting seek opline
2013-11-18 02:14:17 +00:00
krakjoe
5b4837846a
clean flags on run
2013-11-18 01:50:28 +00:00
krakjoe
a1620a7bb4
Merge branch 'master' of https://github.com/krakjoe/phpdbg
2013-11-18 01:45:03 +00:00
krakjoe
07c0dc00cb
fixup until/leave/finish
2013-11-18 01:44:46 +00:00
Felipe Pena
f72b2d6c7c
- Move phpdbg_welcome to phpdbg.c and staticfy it
2013-11-17 23:07:57 -02:00
Felipe Pena
66494ad94e
- CS
2013-11-17 23:05:14 -02:00
Felipe Pena
a7c4a6c21b
- Removed unreached break stmt
2013-11-17 23:04:46 -02:00
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