aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-01 16:10:48 -0600
committerTom Tromey <tom@tromey.com>2019-12-12 15:50:51 -0700
commitf65fe5704af56aca58fd5547d0841a9512e540af (patch)
treed9417b502413aa887de630366220a1c324fd1875 /gdb/objfiles.h
parentbda13cdcf0db4d9cee648bfa0bfc7f1a4415d2a7 (diff)
downloadgdb-f65fe5704af56aca58fd5547d0841a9512e540af.zip
gdb-f65fe5704af56aca58fd5547d0841a9512e540af.tar.gz
gdb-f65fe5704af56aca58fd5547d0841a9512e540af.tar.bz2
Make add_separate_debug_objfile static
This changes objfile::make to take a "parent" parameter, and makes add_separate_debug_objfile static. gdb/ChangeLog 2019-12-12 Tom Tromey <tom@tromey.com> * symfile.c (symbol_file_add_with_addrs): Pass "parent" to objfile::make. * objfiles.h (struct objjfile) <make>: No longer inline. (add_separate_debug_objfile): Don't declare. * objfiles.c (add_separate_debug_objfile): Now static. (objfile::make): Move from objfiles.h. Call add_separate_debug_objfile. Add "parent" parameter. Change-Id: I631f43bb71738dea6ae0697317bf8ef4a0db4617
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index b5c04eb..663e639 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -402,10 +402,8 @@ private:
public:
/* Create an objfile. */
- static objfile *make (bfd *bfd_, const char *name_, objfile_flags flags_)
- {
- return new objfile (bfd_, name_, flags_);
- }
+ static objfile *make (bfd *bfd_, const char *name_, objfile_flags flags_,
+ objfile *parent = nullptr);
~objfile ();
@@ -649,8 +647,6 @@ extern CORE_ADDR entry_point_address (void);
extern void build_objfile_section_table (struct objfile *);
-extern void add_separate_debug_objfile (struct objfile *, struct objfile *);
-
extern void free_objfile_separate_debug (struct objfile *);
extern void free_all_objfiles (void);