All 3 valid Guile pretty printer display hints are treated as the
value "string". As a result, if a printer specifies "array" or
"map", the output is instead formatted as a string.
This humble patch corrects the issue.
if (scm_is_string (hint))
{
if (gdbscm_is_true (scm_string_equal_p (hint, ppscm_array_string)))
- return HINT_STRING;
+ return HINT_ARRAY;
if (gdbscm_is_true (scm_string_equal_p (hint, ppscm_map_string)))
- return HINT_STRING;
+ return HINT_MAP;
if (gdbscm_is_true (scm_string_equal_p (hint, ppscm_string_string)))
return HINT_STRING;
return HINT_ERROR;