diff options
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index dba6621..23202db 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -417,7 +417,8 @@ thread_apply_all_command (cmd, from_tty) if (cmd == NULL || *cmd == '\000') error ("Please specify a command following the thread ID list"); - old_chain = make_cleanup (restore_current_thread, inferior_pid); + old_chain = make_cleanup ((make_cleanup_func) restore_current_thread, + (void *) inferior_pid); for (tp = thread_list; tp; tp = tp->next) if (thread_alive (tp)) @@ -446,7 +447,8 @@ thread_apply_command (tidlist, from_tty) if (*cmd == '\000') error ("Please specify a command following the thread ID list"); - old_chain = make_cleanup (restore_current_thread, inferior_pid); + old_chain = make_cleanup ((make_cleanup_func) restore_current_thread, + (void *) inferior_pid); while (tidlist < cmd) { |