generate libgdb_print