remake  4.3+dbg-1.5
next.h
Go to the documentation of this file.
1 /* Step over the next command to be executed. */
2 /*
3 Copyright (C) 2004-2005, 2007-2009, 2011, 2015, 2020 R. Bernstein
4 <rocky@gnu.org>
5 This file is part of GNU Make (remake variant).
6 
7 GNU Make is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11 
12 GNU Make is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with GNU Make; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21 static debug_return_t
22 dbg_cmd_next(char *psz_arg)
23 {
24  if (!psz_arg || !*psz_arg) {
27  define_variable_in_set("MAKEFLAGS", sizeof("MAKEFLAGS")-1,
28  "", o_debugger, 0, NULL, NULL);
29  return continue_execution;
30  }
31  if (get_uint(psz_arg, &i_debugger_nexting, true))
32  return continue_execution;
33  else
34  return continue_execution;
35  return debug_readloop;
36 }
37 
38 static void
39 dbg_cmd_next_init(unsigned int c)
40 {
41 
42  short_command[c].func = &dbg_cmd_next;
43  short_command[c].use = _("next [AMOUNT]");
44 }
45 
46 /*
47  * Local variables:
48  * eval: (c-set-style "gnu")
49  * indent-tabs-mode: nil
50  * End:
51  */
bool get_uint(const char *psz_arg, unsigned int *pi_result, bool b_warn)
struct variable * define_variable_in_set(const char *name, size_t length, const char *value, enum variable_origin origin, int recursive, struct variable_set *set, const gmk_floc *flocp)
debug_return_t
Definition: trace.h:32
#define _(msgid)
Definition: make.h:293
Definition: trace.h:40
unsigned int i_debugger_nexting
Definition: variable.h:34
Definition: trace.h:33
unsigned int i_debugger_stepping