From patchwork Tue Oct 1 18:37:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 34769 Received: (qmail 32331 invoked by alias); 1 Oct 2019 18:37:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 32051 invoked by uid 89); 1 Oct 2019 18:37:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=H*MI:google X-HELO: mail-yw1-f74.google.com Received: from mail-yw1-f74.google.com (HELO mail-yw1-f74.google.com) (209.85.161.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Oct 2019 18:37:33 +0000 Received: by mail-yw1-f74.google.com with SMTP id a144so12841089ywe.17 for ; Tue, 01 Oct 2019 11:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=jYxDkNvmSVnUEn8s8HLqLdBRj/qhIk/jMPk+82J6DoM=; b=V8y0lw1pi4q578WygtXvwdqEeJeFtGwZjXKkxJE3MsoG7u9uMzE1gJH8PDw5REKh8T dE7glI2c24u+dTqtu8TThwu2Aj+k5/2eybtmGotLR01yDGLlBMj4JZVOxLLuVz132yZH biaTXHDBEx782sn7IYcmk98/U6hiBDQ4AG/n686LRh7x6G54RwMtZi7BSJbf7evpEFKx +araMt8kYdMfb+OEtmxVNr2qh3/VrIXzL0z758KzAW7ekXNtF5myZ6jpPmcDk9qvatte mSEBJEYVYFj1IMh0o6SZ8B1lAjNBz4MnfaIU5cK0dBR9CkdDBZvghD0IrPwULsQK5AsR MUAQ== Date: Tue, 1 Oct 2019 13:37:30 -0500 Message-Id: <20191001183730.214317-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH] Add missing includes to gdb_assert.h and gdb_string_view.h X-Patchwork-Original-From: "Christian Biesinger via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger X-IsSubscribed: yes 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-01 Christian Biesinger * gdbsupport/gdb_assert.h: Include errors.h. * gdbsupport/gdb_string_view.h: Include gdb_assert.h. --- gdb/gdbsupport/gdb_assert.h | 2 ++ gdb/gdbsupport/gdb_string_view.h | 1 + 2 files changed, 3 insertions(+) diff --git a/gdb/gdbsupport/gdb_assert.h b/gdb/gdbsupport/gdb_assert.h index a719d87899..6113050320 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 68f7f7de36..19ae222527 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 {