Add missing includes to gdb_assert.h and gdb_string_view.h
authorChristian Biesinger <cbiesinger@google.com>
Tue, 1 Oct 2019 18:36:07 +0000 (13:36 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 2 Oct 2019 18:33:09 +0000 (13:33 -0500)
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.

gdb/ChangeLog
gdb/gdbsupport/gdb_assert.h
gdb/gdbsupport/gdb_string_view.h

index cb450e2873007007f43d84808e0eb4e6951f8e46..03c249815e6bf9f92a101d52af403760e5b4038b 100644 (file)
@@ -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.
index a719d878990490847de5948a5cf738091ddc3ae3..61130503201bc1e5cad4b0524df21bb798e1b44c 100644 (file)
@@ -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.  */
 
index 68f7f7de36b90a7c6ee6aa07f30cdc18928dee82..19ae222527e37a4a3676071d7eada820d786ce1d 100644 (file)
@@ -46,6 +46,7 @@ namespace gdb {
 
 #include <string>
 #include <limits>
+#include "gdb_assert.h"
 
 namespace gdb {
 
This page took 0.030968 seconds and 4 git commands to generate.