1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-12 09:00:40 -08:00

; Fix printing Lisp types in .gdbinit

* src/alloc.c (valid_lisp_object_p): Support printing
stack-allocated strings and cons cells.
This commit is contained in:
Eli Zaretskii 2022-12-16 14:14:42 +02:00
parent 7575c85efd
commit 1b9ca1e5e6

View file

@ -5275,7 +5275,8 @@ valid_lisp_object_p (Lisp_Object obj)
if (valid <= 0)
return valid;
if (SUBRP (obj))
/* Strings and conses produced by AUTO_STRING etc. all get here. */
if (SUBRP (obj) || STRINGP (obj) || CONSP (obj))
return 1;
return 0;