| 1 | /* Copyright (C) 2011, 2015, 2020 R. Bernstein <[email protected]> |
| 2 | This file is part of GNU Make (remake variant). |
| 3 | |
| 4 | GNU Make is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation; either version 2, or (at your option) |
| 7 | any later version. |
| 8 | |
| 9 | GNU Make is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU General Public License |
| 15 | along with GNU Make; see the file COPYING. If not, write to |
| 16 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 17 | Boston, MA 02111-1307, USA. */ |
| 18 | |
| 19 | /** \file libdebugger/command/setq.c |
| 20 | * |
| 21 | * \brief Debugger `setqx` command. |
| 22 | * |
| 23 | * Debugger command to set a variable definition with variable expansion. |
| 24 | */ |
| 25 | |
| 26 | #include "../../src/trace.h" |
| 27 | #include "../cmd.h" |
| 28 | |
| 29 | extern debug_return_t |
| 30 | dbg_cmd_setqx(char *psz_string) |
| 31 | { |
| 32 | dbg_cmd_set_var(psz_string, 1); |
| 33 | return debug_readloop; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | /* |
| 38 | * Local variables: |
| 39 | * eval: (c-set-style "gnu") |
| 40 | * indent-tabs-mode: nil |
| 41 | * End: |
| 42 | */ |