[php-src] PR #13600: Inline GDB script in the PHP binary
| From: | arnaud-lb | Date: | Tue, 05 Mar 2024 15:29:18 +0000 |
| Subject: | [php-src] PR #13600: Inline GDB script in the PHP binary | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25264@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13600
Author: arnaud-lb
This inlines
.gdbinit and .gdb.py in the .debug_gdb_scripts
section of the PHP binary so that GDB can auto-load them. I also moved the scripts to
tools/gdb/.
.gdbinit was already auto-loaded, but only when it was in the current directory or in
one of the
[directories](https://sourceware.org/gdb/current/onlinedocs/gdb.html/Source-Path.html#Source-Path)
(except in $cdir). Otherwise it had to be manually loaded with source
/path/to/.gdbinit.
For .gdb.py, inlining appears to be the online solution.
See https://github.com/php/php-src/pull/13463#issuecomment-1978722756
See https://sourceware.org/gdb/current/onlinedocs/gdb.html/dotdebug_005fgdb_005fscripts-section.html#dotdebug_005fgdb_005fscripts-section
cc @bwoebi