Bug #70008 [Opn->Csd]: .gdbinit print_cvs needs updating for EX_CV_NUM()

From: Date: Sat, 16 Jun 2018 14:40:01 +0000
Subject: Bug #70008 [Opn->Csd]: .gdbinit print_cvs needs updating for EX_CV_NUM()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215755@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 Updated by: cmb@php.net Reported by: kenny at kennynet dot co dot uk Summary: .gdbinit print_cvs needs updating for EX_CV_NUM() -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Debian wheezy PHP Version: 5.5.26 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Well, PHP 5.5 is water under the bridge now, PHP 5.6 is out of active support for quite some time, and the fix for bug #72680 should make a working print_cvs available for PHP 7. Previous Comments: ------------------------------------------------------------------------ [2016-09-22 10:18:31] xiemaomao520 at 163 dot com Excuse me, does it fix? Where is CVs? How to print current args? ------------------------------------------------------------------------ [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

« previous php.bugs (#215755) next »