Use ui_file_as_string in gdb/python/