Bug #70008 [Com]: .gdbinit print_cvs needs updating for EX_CV_NUM()
| From: | xiemaomao520 at 163 dot com | Date: | Thu, 22 Sep 2016 10:18:32 +0000 |
| Subject: | Bug #70008 [Com]: .gdbinit print_cvs needs updating for EX_CV_NUM() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204182@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70008&edit=1
ID: 70008
Comment by: xiemaomao520 at 163 dot com
Reported by: kenny at kennynet dot co dot uk
Summary: .gdbinit print_cvs needs updating for EX_CV_NUM()
Status: Open
Type: Bug
Package: *General Issues
Operating System: Debian wheezy
PHP Version: 5.5.26
Block user comment: N
Private report: N
New Comment:
Excuse me, does it fix?
Where is CVs?
How to print current args?
Previous Comments:
------------------------------------------------------------------------
[2015-07-07 09:35:42] kenny at kennynet dot co dot uk
Description:
------------
Hi,
In PHP 5.5+ internal changes lists:-
"""
Removed the execute_data->CVs field. The VM compiled variables are always allocated immediately
after the execute_data structure, and are now accessed by the offset from the execute_data base
pointer instead of via execute_data->CVs. You can use the EX_CV_NUM() macro to access compiled
variables by number.
"""
But the .gdbinit file has not been updated and is still trying to use the CVs member in print_cvs
Test script:
---------------
$ gdb -p <php pid>
(gdb) source .gdbinit
(gdb) print_cvs
Expected result:
----------------
The compiled variables are displayed.
Actual result:
--------------
(gdb) print_cvs
There is no member named CVs.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70008&edit=1