summaryrefslogtreecommitdiff
path: root/.gdbinit
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-01-051-1/+2
|\ | | | | | | | | * PHP-7.4: gdbinit: use ____print_str to print htable keys
| * gdbinit: use ____print_str to print htable keysDylan K. Taylor2021-01-051-1/+2
| | | | | | | | | | | | | | | | | | I noticed this problem while dumping the contents of EG(function_table), where keys for closures start with a null byte. printf interprets this as a zero-length string and emits nothing. This allows the key to be rendered properly in readable form. Closes GH-6577.
* | Renumber zval types, clarify allowed overlapNikita Popov2020-01-071-14/+5
| | | | | | | | | | | | | | | | Make it clear that types used for type declarations can overlap with the rest, and can also overlap in MAY_BE space. This makes things more robust against the addition of new primitive types.
* | Change representation of zend_type from type code to MAY_BE_* maskNikita Popov2019-09-231-13/+10
|/ | | | | | | | | | | | | This switches zend_type from storing a single IS_* type code to storing a MAY_BE_* type mask. Right now most code still assumes that there is only a single type in the mask (or two together with MAY_BE_NULL). But this will make it a lot simpler to introduce union types. An additional advantage (and why I'm doing this separately), is that a number of special cases no longer need to be handled separately: We can do a single mask & (1 << type) check to handle all simple types, booleans (true|false) and null.
* Sync types in .gdbinit, improve property dumpingNikita Popov2019-02-261-14/+25
| | | | | If an object doesn't have a property table, we need to go through the property into table and read the corresponding slots.
* Trim trailing whitespace in source code filesPeter Kokot2018-10-131-10/+10
|
* Adds print_global_vars to gdbinitMitch Hagstrand2018-05-261-0/+12
|
* Fixed print_const_table function and zval types in ____printzv_contentsMitch Hagstrand2018-02-151-42/+32
| | | | | | 1. Fixed print_const_table to work in ZE3 2. Removed ____print_const_table to use more generic ____print_ht 3. Fixed up zval types in ____printzv_contents
* Enhancements and fixes for print_pi in gdbinitMitch Hagstrand2018-02-101-2/+11
| | | | | 1) Outputs the default value and the offset of a property 2) Fixed output of property flags
* Removing zmemcheck from .gdbinitMitch Hagstrand2017-01-181-73/+0
| | | | It doesn't seem to make sense anymore
* Fixes in .gdbinit for ZE 3Mitch Hagstrand2017-01-171-12/+33
| | | | | | 1. Fixed print_pi function 2. Fixed printing properties in ____printzv_contents 3. Added optional max length parameter in ____print_str
* Fixed bug #72680 gdbinit print_cvs not prepared for PHP 7Mitch Hagstrand2017-01-121-15/+26
|
* Add print zend string function to gdbinitMitch Hagstrand2017-01-091-0/+12
|
* Doubles are not refcountedHannes Magnusson2015-09-011-1/+1
|
* Merge branch 'patch-gdbinit' of https://github.com/adsr/php-srcXinchen Hui2015-08-181-1/+1
|\
| * Prevent warning when printing arrays in gdbAdam Saponara2015-08-141-1/+1
| |
* | fix printzv (refcount)Michael Wallner2015-08-181-1/+1
|/
* Fixed dumpbtXinchen Hui2015-08-141-1/+1
|
* Fixed print_htXinchen Hui2015-06-151-1/+1
|
* Fixed dump_bt and printzvDmitry Stogov2015-02-091-2/+2
|
* Fix incdec of referenced propertiesNikita Popov2014-10-121-2/+2
| | | | | | | | | | | I thought these SEPARATE_ZVAL_IF_NOT_REF usages were safe at first, because incdec op supports reference variables. However this violates the constraint that IS_TMP_VAR variables may not be references (which is an issue if you use the result of the incdec op). Still need to fix the cases where read_property/write_property is used.
* it's good for gc debugingXinchen Hui2014-09-161-0/+25
|
* Fixed zbacktraceXinchen Hui2014-08-281-3/+11
|
* Make gdb dumpbt work again (at least partially)Nikita Popov2014-07-081-89/+65
|
* Improve gdb ht and zval dumpsNikita Popov2014-05-291-78/+46
|
* A few more fixes and improvements for gdbinitNikita Popov2014-05-291-7/+8
|
* Clamb gdb string output at 256 charsNikita Popov2014-05-281-1/+4
|
* Fix parts of .gdbinitNikita Popov2014-05-251-48/+38
|
* Update .gdbinitXinchen Hui2014-02-201-113/+138
|
* The printf modifier for a double is just %fRasmus Lerdorf2013-04-011-2/+2
|
* Now we can set the tsrm_ls manuallyXinchen Hui2012-10-021-3/+16
| | | | | | | | | | | get(ZTS build): (gdb) zbacktrace You can't do that without a process to debug. (gdb) set_ts 0x4112500 (gdb) zbacktrace [0x2b232e83a1d8] call_user_func(array(2)[0x2b232e879528], array(1)[0x2b232e878fa0]) /tmp/1.php:4 [0x7fffcb2efd80] A->__call("xxx", array(1)[0x2b232e878fa0])
* Merge branch 'pull-request/209' into PHP-5.4Stanislav Malyshev2012-09-301-8/+49
|\ | | | | | | | | | | | | * pull-request/209: Eliminate process running requirement of dump_bt in .gdbinit Add missing ____executor_globals in dump_bt if needed Implemented FR #63188 (Display class name when debugging with gdb macro zbacktrace)
| * Eliminate process running requirement of dump_bt in .gdbinitReeze Xia2012-10-011-13/+24
| | | | | | | | | | | | Most of the time scope are avaible, but if not, it will be hard to get them, since we can't call function if no proccess running. try to get class name if we can.
| * Add missing ____executor_globals in dump_bt if neededReeze Xia2012-09-301-1/+2
| |
| * Implemented FR #63188 (Display class name when debugging with gdb macro ↵Reeze Xia2012-09-301-8/+37
|/ | | | zbacktrace)
* Fix wrong type in the marco of fetching thread globalsXinchen Hui2012-03-111-2/+2
|
* Use zbacktrace_ex instead of zbacktrace(actullay is dump_bt)Xinchen Hui2011-12-061-77/+57
| | | | | | Use %p instead of "0x08x" (IMO this is used for print pointer, which, unfortunately, don't work under x64) If there is any wrong, plz revert this, thanks
* Add zbacktrace_ex to .gdbinit which will print extra argument info than ↵Xinchen Hui2011-12-061-1/+72
| | | | | | | zbacktrace Implement FR #60448
* - Added a function to print all CVs from the local scope.Derick Rethans2009-08-011-0/+19
|
* - MFH Add compiler globals asMarcus Boerger2009-01-041-0/+3
|
* Fix macros after GC patch.Andrei Zmievski2007-10-141-2/+2
|
* - MFH Add print_htptr, print_htstrMarcus Boerger2007-05-201-10/+44
|
* - treat interfaces and classes gracefully in print_inhMichael Wallner2006-05-051-5/+43
|
* - add print_inh (prints a very simple class tree, ie. extensible)Michael Wallner2006-05-051-7/+80
| | | | | | - add print_pi (prints property_info) - add ____print_str (print strings binary safely, for hash keys etc)
* - MFHMarcus Boerger2006-03-081-72/+110
|
* - Add "zbacktrace" user-defined command.Moriyoshi Koizumi2004-02-161-1/+12
|
* Fixed printzn part.Moriyoshi Koizumi2003-05-051-3/+3
| | | | | # please be more careful, sterling..
* Fixed printzv macroMoriyoshi Koizumi2003-05-051-2/+2
|
* some improvements to the debugging macrosSterling Hughes2003-05-021-31/+75
|
* Support for ZTSMarcus Boerger2003-04-061-17/+36
|