From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb/dwarf2: remove unneeded forward declarations in read.c
Date: Mon, 26 Oct 2026 11:30:31 -0400 [thread overview]
Message-ID: <20261026153034.1997601-1-simon.marchi@efficios.com> (raw)
Remove a few unneded forward declarations of static functions.
Change-Id: I75f09c989b455e57e1aa2e20af8d4774f0569a36
---
gdb/dwarf2/read.c | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index aac8f8fa70b5..39fc471b9ce9 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -527,10 +527,6 @@ static const char *read_indirect_string (dwarf2_per_objfile *per_objfile, bfd *,
const gdb_byte *, const unit_head *,
unsigned int *);
-static unrelocated_addr read_addr_index_from_leb128 (struct dwarf2_cu *,
- const gdb_byte *,
- unsigned int *);
-
static const char *read_stub_str_index (struct dwarf2_cu *cu,
ULONGEST str_index);
@@ -573,11 +569,6 @@ static struct type *read_subrange_index_type (struct die_info *die,
static struct type *die_type (struct die_info *, struct dwarf2_cu *);
-static bool need_gnat_info (struct dwarf2_cu *);
-
-static struct type *die_descriptive_type (struct die_info *,
- struct dwarf2_cu *);
-
static void set_descriptive_type (struct type *, struct die_info *,
struct dwarf2_cu *);
@@ -629,17 +620,6 @@ static void get_scope_pc_bounds (struct die_info *,
static void dwarf2_record_block_ranges (struct die_info *, struct block *,
struct dwarf2_cu *);
-static void dwarf2_attach_fields_to_type (struct field_info *,
- struct type *, struct dwarf2_cu *);
-
-static void dwarf2_add_member_fn (struct field_info *,
- struct die_info *, struct type *,
- struct dwarf2_cu *);
-
-static void dwarf2_attach_fn_fields_to_type (struct field_info *,
- struct type *,
- struct dwarf2_cu *);
-
static void process_structure_scope (struct die_info *, struct dwarf2_cu *);
static void read_common_block (struct die_info *, struct dwarf2_cu *);
@@ -648,15 +628,10 @@ static void read_namespace (struct die_info *die, struct dwarf2_cu *);
static void read_module (struct die_info *die, struct dwarf2_cu *cu);
-static struct using_direct **using_directives (struct dwarf2_cu *cu);
-
static void read_import_statement (struct die_info *die, struct dwarf2_cu *);
static bool read_alias (struct die_info *die, struct dwarf2_cu *cu);
-static struct type *read_module_type (struct die_info *die,
- struct dwarf2_cu *cu);
-
static const char *namespace_name (struct die_info *die,
int *is_anonymous, struct dwarf2_cu *);
@@ -693,13 +668,6 @@ static struct die_info *follow_die_ref (struct die_info *,
const struct attribute *,
struct dwarf2_cu **);
-static void fill_in_sig_entry_from_dwo_entry (dwarf2_per_objfile *per_objfile,
- signatured_type *sig_entry,
- dwo_unit *dwo_entry);
-
-static void fill_in_sig_entry_from_per_cu_hint
- (dwarf2_per_objfile &per_objfile, signatured_type &sig_type);
-
static struct die_info *follow_die_sig (struct die_info *,
const struct attribute *,
struct dwarf2_cu **);
base-commit: 50b7267f00c094614ab4efb43f7aac0507a436e7
--
2.56.0
reply other threads:[~2026-10-26 15:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261026153034.1997601-1-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox