From: Christian Biesinger Date: Tue, 1 Oct 2019 18:36:07 +0000 (-0500) Subject: Add missing includes to gdb_assert.h and gdb_string_view.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=700545387df82388b054947dc74cc0bb5cbd2a60;p=binutils-gdb.git 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 * gdbsupport/gdb_assert.h: Include errors.h. * gdbsupport/gdb_string_view.h: Include gdb_assert.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb450e28730..03c249815e6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-10-02 Christian Biesinger + + * gdbsupport/gdb_assert.h: Include errors.h. + * gdbsupport/gdb_string_view.h: Include gdb_assert.h. + 2019-10-02 Tom Tromey * NEWS: Add $_ada_exception entry. diff --git a/gdb/gdbsupport/gdb_assert.h b/gdb/gdbsupport/gdb_assert.h index a719d878990..61130503201 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 68f7f7de36b..19ae222527e 100644 --- a/gdb/gdbsupport/gdb_string_view.h +++ b/gdb/gdbsupport/gdb_string_view.h @@ -46,6 +46,7 @@ namespace gdb { #include #include +#include "gdb_assert.h" namespace gdb {