This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] remove proceed_to_finish from inferior.h
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Wed, 19 Nov 2008 16:35:36 -0800 (PST)
- Subject: [ob] remove proceed_to_finish from inferior.h
Hi. proceed_to_finish in inferior.h got left behind when it
was moved to gdbthread.h.
I also tweaked a comment on stop_registers so it's clearer.
Checked in as obvious.
2008-11-19 Doug Evans <dje@google.com>
* inferior.h (proceed_to_finish): Delete, unused.
(stop_registers): Tweak comment.
* infrun.c (stop_registers): Tweak comment.
Index: inferior.h
===================================================================
RCS file: /cvs/src/src/gdb/inferior.h,v
retrieving revision 1.115
diff -u -p -r1.115 inferior.h
--- inferior.h 17 Nov 2008 16:37:34 -0000 1.115
+++ inferior.h 20 Nov 2008 00:28:40 -0000
@@ -342,13 +342,8 @@ enum exec_direction_kind
extern enum exec_direction_kind execution_direction;
-/* Nonzero if proceed is being used for a "finish" command or a similar
- situation when stop_registers should be saved. */
-
-extern int proceed_to_finish;
-
-/* Save register contents here when about to pop a stack dummy frame,
- if-and-only-if proceed_to_finish is set.
+/* Save register contents here when executing a "finish" command or are
+ about to pop a stack dummy frame, if-and-only-if proceed_to_finish is set.
Thus this contains the return value from the called function (assuming
values are returned in a register). */
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.338
diff -u -p -r1.338 infrun.c
--- infrun.c 17 Nov 2008 18:50:22 -0000 1.338
+++ infrun.c 20 Nov 2008 00:28:40 -0000
@@ -232,8 +232,8 @@ show_stop_on_solib_events (struct ui_fil
int stop_after_trap;
-/* Save register contents here when about to pop a stack dummy frame,
- if-and-only-if proceed_to_finish is set.
+/* Save register contents here when executing a "finish" command or are
+ about to pop a stack dummy frame, if-and-only-if proceed_to_finish is set.
Thus this contains the return value from the called function (assuming
values are returned in a register). */