aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-09-19 20:34:23 -0600
committerTom Tromey <tom@tromey.com>2023-09-20 11:45:16 -0600
commitef0f16ccf8c3f09a3e986329c1428789ef17f17f (patch)
treeeeec07619180cc7c3ad56e555fdf914d9b863595 /gdb/procfs.c
parent0b7de6d3ee07653e97e65a2968742c93b7102f62 (diff)
downloadbinutils-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.zip
binutils-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.tar.gz
binutils-ef0f16ccf8c3f09a3e986329c1428789ef17f17f.tar.bz2
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 <aburgess@redhat.com>
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index d55a16a..9443b07 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -25,7 +25,7 @@
#include "infrun.h"
#include "target.h"
#include "gdbcore.h"
-#include "elf-bfd.h" /* for elfcore_write_* */
+#include "elf-bfd.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "regcache.h"
@@ -66,11 +66,11 @@
interface. */
#include <sys/types.h>
-#include <dirent.h> /* opendir/readdir, for listing the LWP's */
+#include <dirent.h>
-#include <fcntl.h> /* for O_RDONLY */
-#include <unistd.h> /* for "X_OK" */
-#include <sys/stat.h> /* for struct stat */
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/stat.h>
/* Note: procfs-utils.h must be included after the above system header
files, because it redefines various system calls using macros.