Rephrase error message in infcall.c:call_function_by_hand
[deliverable/binutils-gdb.git] / gdb / continuations.h
CommitLineData
be34f849
PA
1/* Continuations for GDB, the GNU debugger.
2
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008,
4 2009, 2010, 2011 Free Software Foundation, Inc.
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21#ifndef CONTINUATIONS_H
22#define CONTINUATIONS_H
23
24struct thread_info;
25struct inferior;
26
27/* To continue the execution commands when running gdb asynchronously.
28 A continuation structure contains a pointer to a function to be called
29 to finish the command, once the target has stopped. Such mechanism is
30 used by the finish and until commands, and in the remote protocol
31 when opening an extended-remote connection. */
32
33/* Prototype of the continuation callback functions. */
34typedef void (continuation_ftype) (void *);
35
36/* Prototype of the function responsible for releasing the argument
37 passed to the continuation callback functions, either when the
38 continuation is called, or discarded. */
39typedef void (continuation_free_arg_ftype) (void *);
40
41/* Thread specific continuations. */
42
43extern void add_continuation (struct thread_info *,
44 continuation_ftype *, void *,
45 continuation_free_arg_ftype *);
46extern void do_all_continuations (void);
47extern void do_all_continuations_thread (struct thread_info *);
48extern void discard_all_continuations (void);
49extern void discard_all_continuations_thread (struct thread_info *);
50
51extern void add_intermediate_continuation (struct thread_info *,
52 continuation_ftype *, void *,
53 continuation_free_arg_ftype *);
54extern void do_all_intermediate_continuations (void);
55extern void do_all_intermediate_continuations_thread (struct thread_info *);
56extern void discard_all_intermediate_continuations (void);
57extern void discard_all_intermediate_continuations_thread (struct thread_info *);
58
59/* Inferior specific (any thread) continuations. */
60
61extern void add_inferior_continuation (continuation_ftype *,
62 void *,
63 continuation_free_arg_ftype *);
64extern void do_all_inferior_continuations (void);
65extern void discard_all_inferior_continuations (struct inferior *inf);
66
67#endif
This page took 0.026099 seconds and 4 git commands to generate.