Add progspace support for Guile.
[deliverable/binutils-gdb.git] / gdb / guile / scm-pretty-print.c
index 6aa911912febd49aa1d30cae9c1cae6bd5960482..e20da68027cf8975f14c98897fd63b78bb39791b 100644 (file)
@@ -441,7 +441,11 @@ ppscm_find_pretty_printer_from_objfiles (SCM value)
 static SCM
 ppscm_find_pretty_printer_from_progspace (SCM value)
 {
-  return SCM_BOOL_F; /*TODO*/
+  pspace_smob *p_smob = psscm_pspace_smob_from_pspace (current_program_space);
+  SCM pp
+    = ppscm_search_pp_list (psscm_pspace_smob_pretty_printers (p_smob), value);
+
+  return pp;
 }
 
 /* Subroutine of find_pretty_printer to simplify it.
This page took 0.028566 seconds and 4 git commands to generate.