Untie strchrnul() from gdb.
MFC after: 10 days
(cherry picked from commit 2373e704aa1a5dcb7609badfdb0be4ceb4966d74)