define my_thread_names set logging off set logging file /tmp/tmp_file_gdb_names set pagination off set logging overwrite on set logging redirect on set logging on thread apply all bt set logging off set logging redirect off set logging overwrite off set pagination on shell ./gdb_bt_to_name.pl /tmp/tmp_file_gdb_names shell rm -f /tmp/tmp_file_gdb_names end