diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 09:03:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 14:08:45 -0400 |
commit | 4f7df13ee75be36ae5c6046b6d6f60e04498b719 (patch) | |
tree | 7fd4fd6f21e7d1f97c90719c6416577b08b7bff5 | |
parent | 359efc2d894609fcffd24acaf5b35ecb7c8cbc1e (diff) | |
download | binutils-gdb-4f7df13ee75be36ae5c6046b6d6f60e04498b719.tar.gz |
gdb: remove subfile::buildsym_compunit field
It is only set, never used.
Change-Id: Ia46ed2f9da243b0ccfc4588c1b57be2a0f3939de
-rw-r--r-- | gdb/buildsym.c | 1 | ||||
-rw-r--r-- | gdb/buildsym.h | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 4718b201f03..9a9d3cf74d9 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 4e9aaa41426..5f0e0230fd9 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; }; |