aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-22 17:08:16 -0600
committerTom Tromey <tom@tromey.com>2020-01-26 16:40:21 -0700
commitc3693a1d9466bc9d3abe004e66f1b56fed22ba61 (patch)
tree8e9f5a9fda035595e06d889abd595b4e173af616 /gdb/dwarf2read.c
parent32caafd02b069c36908f41f53ae0cbca1911aaca (diff)
downloadbinutils-c3693a1d9466bc9d3abe004e66f1b56fed22ba61.zip
binutils-c3693a1d9466bc9d3abe004e66f1b56fed22ba61.tar.gz
binutils-c3693a1d9466bc9d3abe004e66f1b56fed22ba61.tar.bz2
Turn start_psymtab_common into a constructor
This turns start_psymtab_common into a constructor, and then changes the callers to use "new" directly. This completes the psymtab allocation transition -- now it is possible for symbol readers to subclass struct partial_symtab. gdb/ChangeLog 2020-01-26 Tom Tromey <tom@tromey.com> * xcoffread.c (xcoff_start_psymtab): Use new. * psymtab.c (partial_symtab::partial_symtab): New constructor, renamed from start_psymtab_common. * psympriv.h (struct partial_symtab): Add new constructor. (start_psymtab_common): Don't declare. * mdebugread.c (parse_partial_symbols): Use new. * dwarf2read.c (create_partial_symtab): Use new. * dbxread.c (start_psymtab): Use new. * ctfread.c (create_partial_symtab): Use new. Change-Id: I5a0217bcb52bcfa442559771954bb66bd9ccbf02
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2cac286..f865fa4 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -8027,7 +8027,7 @@ create_partial_symtab (struct dwarf2_per_cu_data *per_cu, const char *name)
struct objfile *objfile = per_cu->dwarf2_per_objfile->objfile;
struct partial_symtab *pst;
- pst = start_psymtab_common (objfile, name, 0);
+ pst = new partial_symtab (name, objfile, 0);
pst->psymtabs_addrmap_supported = true;