public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb: remove subfile::buildsym_compunit field
@ 2022-04-07 18:09 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-04-07 18:09 UTC (permalink / raw)
  To: gdb-patches

It is only set, never used.

Change-Id: Ia46ed2f9da243b0ccfc4588c1b57be2a0f3939de
---
 gdb/buildsym.c | 1 -
 gdb/buildsym.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 4718b201f036..9a9d3cf74d9b 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -539,7 +539,6 @@ buildsym_compunit::start_subfile (const char *name)
 
   subfile = XNEW (struct subfile);
   memset (subfile, 0, sizeof (struct subfile));
-  subfile->buildsym_compunit = this;
 
   subfile->next = m_subfiles;
   m_subfiles = subfile;
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 4e9aaa41426b..5f0e0230fd9f 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -51,8 +51,6 @@ struct subfile
   /* Space for this is malloc'd.  */
   struct linetable *line_vector;
   int line_vector_length;
-  /* The "containing" compunit.  */
-  struct buildsym_compunit *buildsym_compunit;
   enum language language;
   struct symtab *symtab;
 };

base-commit: 359efc2d894609fcffd24acaf5b35ecb7c8cbc1e
-- 
2.35.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-07 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 18:09 [pushed] gdb: remove subfile::buildsym_compunit field Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).