summaryrefslogtreecommitdiffstats
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
commitb04f3ab41782ec089e698e372f567bde75831438 (patch)
tree0a3b97a891dba140098c58f5313ca4b75fcbdb47 /gdb/thread.c
parent00b25ff323929eaa3b7ddaea20985a4174cf6381 (diff)
downloadppe42-binutils-b04f3ab41782ec089e698e372f567bde75831438.tar.gz
ppe42-binutils-b04f3ab41782ec089e698e372f567bde75831438.zip
2004-10-29 Andrew Cagney <cagney@gnu.org>
* frame.h (get_selected_frame): Add message parameter. * frame.c (get_selected_frame): Add and use message parameter. * stack.c (current_frame_command, return_command, locals_info) (catch_info, args_info, up_silently_base, down_silently_base): Use get_selected_frame with an explicit message. * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update. * remote-rdp.c, remote-mips.c, remote-e7000.c: Update. * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update. * infrun.c, inflow.c, infcmd.c, frame.c: Update. * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update. * breakpoint.c: Update.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index a52395bd14..c77585e3fc 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -407,7 +407,7 @@ info_threads_command (char *arg, int from_tty)
struct thread_info *tp;
ptid_t current_ptid;
struct frame_info *cur_frame;
- struct frame_id saved_frame_id = get_frame_id (get_selected_frame ());
+ struct frame_id saved_frame_id = get_frame_id (get_selected_frame (NULL));
char *extra_info;
prune_threads ();
@@ -428,7 +428,7 @@ info_threads_command (char *arg, int from_tty)
puts_filtered (" ");
switch_to_thread (tp->ptid);
- print_stack_frame (get_selected_frame (), 0, LOCATION);
+ print_stack_frame (get_selected_frame (NULL), 0, LOCATION);
}
switch_to_thread (current_ptid);
@@ -442,7 +442,7 @@ info_threads_command (char *arg, int from_tty)
{
/* Ooops, can't restore, tell user where we are. */
warning ("Couldn't restore frame in current thread, at frame 0");
- print_stack_frame (get_selected_frame (), 0, LOCATION);
+ print_stack_frame (get_selected_frame (NULL), 0, LOCATION);
}
else
{
@@ -661,7 +661,7 @@ do_captured_thread_select (struct ui_out *uiout, void *tidstr)
ui_out_text (uiout, target_tid_to_str (inferior_ptid));
ui_out_text (uiout, ")]");
- print_stack_frame (get_selected_frame (), 1, SRC_AND_LOC);
+ print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
return GDB_RC_OK;
}
OpenPOWER on IntegriCloud