diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-01 13:36:07 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-02 13:33:09 -0500 |
commit | 700545387df82388b054947dc74cc0bb5cbd2a60 (patch) | |
tree | 95a72f1c4028c35d9c1715e0cd161cf586e8605f /gdb | |
parent | 9ef62df072d85d9cd0fadc90a3bd7f05e32ba9fd (diff) | |
download | binutils-700545387df82388b054947dc74cc0bb5cbd2a60.zip binutils-700545387df82388b054947dc74cc0bb5cbd2a60.tar.gz binutils-700545387df82388b054947dc74cc0bb5cbd2a60.tar.bz2 |
Add missing includes to gdb_assert.h and gdb_string_view.h
gdb::string_view uses gdb_assert, so it should include that header.
And gdb_assert uses internal_error, so it should include errors.h.
gdb/ChangeLog:
2019-10-02 Christian Biesinger <cbiesinger@google.com>
* gdbsupport/gdb_assert.h: Include errors.h.
* gdbsupport/gdb_string_view.h: Include gdb_assert.h.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbsupport/gdb_assert.h | 2 | ||||
-rw-r--r-- | gdb/gdbsupport/gdb_string_view.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb450e2..03c2498 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-10-02 Christian Biesinger <cbiesinger@google.com> + + * gdbsupport/gdb_assert.h: Include errors.h. + * gdbsupport/gdb_string_view.h: Include gdb_assert.h. + 2019-10-02 Tom Tromey <tromey@adacore.com> * NEWS: Add $_ada_exception entry. diff --git a/gdb/gdbsupport/gdb_assert.h b/gdb/gdbsupport/gdb_assert.h index a719d87..6113050 100644 --- a/gdb/gdbsupport/gdb_assert.h +++ b/gdb/gdbsupport/gdb_assert.h @@ -19,6 +19,8 @@ #ifndef COMMON_GDB_ASSERT_H #define COMMON_GDB_ASSERT_H +#include "errors.h" + /* A static assertion. This will cause a compile-time error if EXPR, which must be a compile-time constant, is false. */ diff --git a/gdb/gdbsupport/gdb_string_view.h b/gdb/gdbsupport/gdb_string_view.h index 68f7f7d..19ae222 100644 --- a/gdb/gdbsupport/gdb_string_view.h +++ b/gdb/gdbsupport/gdb_string_view.h @@ -46,6 +46,7 @@ namespace gdb { #include <string> #include <limits> +#include "gdb_assert.h" namespace gdb { |