gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdbsupport / errors.cc
CommitLineData
ef87c8bb
GB
1/* Error reporting facilities.
2
b811d2c2 3 Copyright (C) 1986-2020 Free Software Foundation, Inc.
ef87c8bb
GB
4
5 This file is part of GDB.
6
7 This program 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 3 of the License, or
10 (at your option) any later version.
11
12 This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */
19
727605ca 20#include "common-defs.h"
ef87c8bb
GB
21#include "errors.h"
22
268a13a5 23/* See gdbsupport/errors.h. */
ef87c8bb
GB
24
25void
26warning (const char *fmt, ...)
27{
28 va_list ap;
29
30 va_start (ap, fmt);
31 vwarning (fmt, ap);
32 va_end (ap);
33}
34
268a13a5 35/* See gdbsupport/errors.h. */
ef87c8bb
GB
36
37void
38error (const char *fmt, ...)
39{
40 va_list ap;
41
42 va_start (ap, fmt);
43 verror (fmt, ap);
44 va_end (ap);
45}
46
268a13a5 47/* See gdbsupport/errors.h. */
ef87c8bb
GB
48
49void
50internal_error (const char *file, int line, const char *fmt, ...)
51{
52 va_list ap;
53
54 va_start (ap, fmt);
55 internal_verror (file, line, fmt, ap);
56 va_end (ap);
57}
e3d6ba5d 58
268a13a5 59/* See gdbsupport/errors.h. */
e3d6ba5d
GB
60
61void
62internal_warning (const char *file, int line, const char *fmt, ...)
63{
64 va_list ap;
65
66 va_start (ap, fmt);
67 internal_vwarning (file, line, fmt, ap);
68 va_end (ap);
69}
This page took 0.408904 seconds and 4 git commands to generate.