From 6391ce51cfe734d80b0917facd3788b9bf2e757c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 30 Aug 2013 15:31:32 +0000 Subject: [PATCH] bsd-kvm.c: Fix arguments to print_stack_frame. 1 is SRC_AND_LOC. Then, this is passing -1 as print_level argument to print_stack_frame. -1 is not a valid print_level value (it's a regular boolean). But, it used to be, before . What happened is that bsd-kvm.c did not exist at the time of that patch, but went into the tree about a month after, without being adjusted to the new interface. Fixed now, exactly as e.g., ocd.c had been adjusted: > --- ocd.c 18 Jan 2004 19:26:51 -0000 1.28 > +++ ocd.c 23 Apr 2004 14:29:12 -0000 > @@ -225,7 +225,7 @@ > flush_cached_frames (); > registers_changed (); > stop_pc = read_pc (); > - print_stack_frame (get_selected_frame (), -1, 1); > + print_stack_frame (get_selected_frame (), 0, SRC_AND_LOC); gdb/ 2013-08-30 Pedro Alves * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Adjust arguments to print_stack_frame. --- gdb/ChangeLog | 5 +++++ gdb/bsd-kvm.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0890b2f6d9..2b8d8eb047 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-08-30 Pedro Alves + + * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): + Adjust arguments to print_stack_frame. + 2013-08-30 Pedro Alves * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'. diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index dd0ef06aa4..b47578b269 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -100,7 +100,7 @@ bsd_kvm_open (char *filename, int from_tty) target_fetch_registers (get_current_regcache (), -1); reinit_frame_cache (); - print_stack_frame (get_selected_frame (NULL), -1, 1); + print_stack_frame (get_selected_frame (NULL), 0, SRC_AND_LOC); } static void @@ -286,7 +286,7 @@ bsd_kvm_proc_cmd (char *arg, int fromtty) target_fetch_registers (get_current_regcache (), -1); reinit_frame_cache (); - print_stack_frame (get_selected_frame (NULL), -1, 1); + print_stack_frame (get_selected_frame (NULL), 0, SRC_AND_LOC); } #endif @@ -306,7 +306,7 @@ bsd_kvm_pcb_cmd (char *arg, int fromtty) target_fetch_registers (get_current_regcache (), -1); reinit_frame_cache (); - print_stack_frame (get_selected_frame (NULL), -1, 1); + print_stack_frame (get_selected_frame (NULL), 0, SRC_AND_LOC); } static int -- 2.34.1