aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-14 15:59:55 -0700
committerTom Tromey <tom@tromey.com>2018-09-17 00:42:18 -0600
commitee841dd8fee73c355587533027aecc8983bd5478 (patch)
treefda1bcc80220de90f052a0ea8461fa154cacff2b /gdb/inferior.c
parent117f580a97f721465d62d0630594dafdcd89e4e8 (diff)
downloadgdb-ee841dd8fee73c355587533027aecc8983bd5478.zip
gdb-ee841dd8fee73c355587533027aecc8983bd5478.tar.gz
gdb-ee841dd8fee73c355587533027aecc8983bd5478.tar.bz2
Use new and delete for struct infcall_control_state
This changes infrun.c to use new and delete for infcall_control_state. gdb/ChangeLog 2018-09-17 Tom Tromey <tom@tromey.com> * gdbthread.h (struct thread_control_state): Add initializer. (class thread_info) <control>: Remove initializer. * inferior.h (struct inferior_control_state): Add initializer. (class inferior) <control>: Remove initializer. (exit_inferior_1): Update. * infrun.c (struct infcall_control_state): Add constructors. (save_infcall_control_state): Use new. (restore_infcall_control_state, discard_infcall_control_state): Use delete.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 76f5581..17d28c4 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -226,7 +226,7 @@ exit_inferior_1 (struct inferior *inftoex, int silent)
inf->pending_detach = 0;
/* Reset it. */
- inf->control = {NO_STOP_QUIETLY};
+ inf->control = inferior_control_state (NO_STOP_QUIETLY);
}
void