From 700545387df82388b054947dc74cc0bb5cbd2a60 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 1 Oct 2019 13:36:07 -0500 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/gdbsupport/gdb_assert.h | 2 ++ gdb/gdbsupport/gdb_string_view.h | 1 + 3 files changed, 8 insertions(+) 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 { -- 2.30.2