From ef0f16ccf8c3f09a3e986329c1428789ef17f17f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 19 Sep 2023 20:34:23 -0600 Subject: Remove explanatory comments from includes I noticed a comment by an include and remembered that I think these don't really provide much value -- sometimes they are just editorial, and sometimes they are obsolete. I think it's better to just remove them. Tested by rebuilding. Approved-By: Andrew Burgess --- gdb/guile/guile-internal.h | 2 +- gdb/guile/scm-disasm.c | 2 +- gdb/guile/scm-math.c | 2 +- gdb/guile/scm-pretty-print.c | 4 ++-- gdb/guile/scm-type.c | 2 +- gdb/guile/scm-value.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'gdb/guile') diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h index b04ef17..c0f1410 100644 --- a/gdb/guile/guile-internal.h +++ b/gdb/guile/guile-internal.h @@ -29,7 +29,7 @@ #include "symtab.h" #include "libguile.h" #include "objfiles.h" -#include "top.h" /* For quit_force(). */ +#include "top.h" struct block; struct frame_info; diff --git a/gdb/guile/scm-disasm.c b/gdb/guile/scm-disasm.c index 58ccb4f..9169b4a 100644 --- a/gdb/guile/scm-disasm.c +++ b/gdb/guile/scm-disasm.c @@ -25,7 +25,7 @@ #include "disasm.h" #include "dis-asm.h" #include "gdbarch.h" -#include "gdbcore.h" /* Why is memory_error here? */ +#include "gdbcore.h" #include "guile-internal.h" static SCM port_keyword; diff --git a/gdb/guile/scm-math.c b/gdb/guile/scm-math.c index 32595cf..809bff1 100644 --- a/gdb/guile/scm-math.c +++ b/gdb/guile/scm-math.c @@ -25,7 +25,7 @@ #include "charset.h" #include "cp-abi.h" #include "target-float.h" -#include "symtab.h" /* Needed by language.h. */ +#include "symtab.h" #include "language.h" #include "valprint.h" #include "value.h" diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c index ae56758..2870e14 100644 --- a/gdb/guile/scm-pretty-print.c +++ b/gdb/guile/scm-pretty-print.c @@ -21,9 +21,9 @@ conventions, et.al. */ #include "defs.h" -#include "top.h" /* For quit_force(). */ +#include "top.h" #include "charset.h" -#include "symtab.h" /* Needed by language.h. */ +#include "symtab.h" #include "language.h" #include "objfiles.h" #include "value.h" diff --git a/gdb/guile/scm-type.c b/gdb/guile/scm-type.c index 3b0a275..8502cb6 100644 --- a/gdb/guile/scm-type.c +++ b/gdb/guile/scm-type.c @@ -21,7 +21,7 @@ conventions, et.al. */ #include "defs.h" -#include "top.h" /* For quit_force(). */ +#include "top.h" #include "arch-utils.h" #include "value.h" #include "gdbtypes.h" diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index 6f325db..e58e132 100644 --- a/gdb/guile/scm-value.c +++ b/gdb/guile/scm-value.c @@ -21,13 +21,13 @@ conventions, et.al. */ #include "defs.h" -#include "top.h" /* For quit_force(). */ +#include "top.h" #include "arch-utils.h" #include "charset.h" #include "cp-abi.h" #include "target-float.h" #include "infcall.h" -#include "symtab.h" /* Needed by language.h. */ +#include "symtab.h" #include "language.h" #include "valprint.h" #include "value.h" -- cgit v1.1