From 147699fd6991ae67fc22ca543a28f85a242fc930 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 16 Dec 2022 12:50:29 -0700 Subject: Remove struct buffer I've long wanted to remove 'struct buffer', and thanks to Simon's earlier patch, I was finally able to do so. My feeling has been that gdb already has several decent structures available for growing strings: std::string of course, but also obstack and even objalloc from BFD and dyn-string from libiberty. The previous patches in this series removed all the uses of struct buffer, so this one can remove the code and the remaining #includes. --- gdb/linux-nat.c | 1 - gdb/nat/linux-osdata.c | 1 - gdb/nat/linux-ptrace.c | 1 - gdb/nat/linux-ptrace.h | 2 -- gdb/top.h | 1 - 5 files changed, 6 deletions(-) (limited to 'gdb') diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index d6e69e6..e5391b9 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -60,7 +60,6 @@ #include "symfile.h" #include "gdbsupport/agent.h" #include "tracepoint.h" -#include "gdbsupport/buffer.h" #include "target-descriptions.h" #include "gdbsupport/filestuff.h" #include "objfiles.h" diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c index 2a16017..3f63ade 100644 --- a/gdb/nat/linux-osdata.c +++ b/gdb/nat/linux-osdata.c @@ -33,7 +33,6 @@ #include #include "gdbsupport/xml-utils.h" -#include "gdbsupport/buffer.h" #include #include #include "gdbsupport/filestuff.h" diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c index f312779..1ddca72 100644 --- a/gdb/nat/linux-ptrace.c +++ b/gdb/nat/linux-ptrace.c @@ -20,7 +20,6 @@ #include "linux-ptrace.h" #include "linux-procfs.h" #include "linux-waitpid.h" -#include "gdbsupport/buffer.h" #ifdef HAVE_SYS_PROCFS_H #include #endif diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h index 19f4736..b838533 100644 --- a/gdb/nat/linux-ptrace.h +++ b/gdb/nat/linux-ptrace.h @@ -18,8 +18,6 @@ #ifndef NAT_LINUX_PTRACE_H #define NAT_LINUX_PTRACE_H -struct buffer; - #include "nat/gdb_ptrace.h" #include "gdbsupport/gdb_wait.h" diff --git a/gdb/top.h b/gdb/top.h index 9f9a028..4972d5e 100644 --- a/gdb/top.h +++ b/gdb/top.h @@ -20,7 +20,6 @@ #ifndef TOP_H #define TOP_H -#include "gdbsupport/buffer.h" #include "gdbsupport/event-loop.h" #include "gdbsupport/next-iterator.h" #include "value.h" -- cgit v1.1