bsd-kvm.c: Fix arguments to print_stack_frame.
authorPedro Alves <palves@redhat.com>
Fri, 30 Aug 2013 15:31:32 +0000 (15:31 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 30 Aug 2013 15:31:32 +0000 (15:31 +0000)
commit6391ce51cfe734d80b0917facd3788b9bf2e757c
tree57ae4e311fd9187e18337f44cbd1c3d6e2d0c7fd
parentd1da058760ac77883ad204288ce7b64076652157
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
<https://sourceware.org/ml/gdb-patches/2004-04/msg00585.html>.

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  <palves@redhat.com>

* bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
Adjust arguments to print_stack_frame.
gdb/ChangeLog
gdb/bsd-kvm.c
This page took 0.025481 seconds and 4 git commands to generate.