diff options
author | Dylan K. Taylor <odigiman@gmail.com> | 2021-01-04 23:13:00 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-05 10:11:56 +0100 |
commit | 6b631f073d6843c8c9fa7932c4ad8ab3d70c42a4 (patch) | |
tree | 9dc6286ea03ffeb346cfb10d665db0458623412c | |
parent | 46d6daea7aaf04ae85634c99252ab924ef6c34c3 (diff) | |
download | php-git-6b631f073d6843c8c9fa7932c4ad8ab3d70c42a4.tar.gz |
gdbinit: use ____print_str to print htable keys
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.
-rw-r--r-- | .gdbinit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -352,7 +352,8 @@ define ____print_ht end printf "[%d] ", $i if $p->key - printf "%s => ", $p->key->val + ____print_str $p->key->val $p->key->len + printf " => " else printf "%d => ", $p->h end |