From: Simon Marchi Date: Mon, 8 Dec 2025 20:02:41 +0000 (-0500) Subject: gdb: remove unused includes from c-lang.{c,h} X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=003de5082c532d75385be50298bdbf1e00b9901c;p=thirdparty%2Fbinutils-gdb.git gdb: remove unused includes from c-lang.{c,h} These includes are reported as unused by clangd. Change-Id: Ib5c655d9c96e7a612e223bd87d124f90112acc5a --- diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 4ea60fe54f6..20260645b6c 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -51,6 +51,7 @@ #include "type-stack.h" #include "target-float.h" #include "c-exp.h" +#include "macroexp.h" #define parse_type(ps) builtin_type (ps->gdbarch ()) diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 95bfaa4c8ae..59db4c4ab6d 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -25,9 +25,7 @@ #include "language.h" #include "varobj.h" #include "c-lang.h" -#include "c-support.h" #include "valprint.h" -#include "macroscope.h" #include "charset.h" #include "demangle.h" #include "cp-abi.h" diff --git a/gdb/c-lang.h b/gdb/c-lang.h index c4f729c2d37..48b3f114d50 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h @@ -28,7 +28,6 @@ struct parser_state; #include "compile/compile.h" #include "value.h" -#include "macroexp.h" #include "gdbsupport/enum-flags.h"