From 6b631f073d6843c8c9fa7932c4ad8ab3d70c42a4 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 4 Jan 2021 23:13:00 +0000 Subject: 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. --- .gdbinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.gdbinit') diff --git a/.gdbinit b/.gdbinit index 8e54830ef2..a163bcc473 100644 --- a/.gdbinit +++ b/.gdbinit @@ -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 -- cgit v1.2.1