diff options
author | Tom Tromey <tom@tromey.com> | 2019-10-20 20:41:20 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-10-20 20:54:06 -0600 |
commit | 54d83b8d3920eea4a0d545f1ff7ac2923d938e6c (patch) | |
tree | 94a1661b2ea78234fb1d6cbe864da97ccda49ac9 /gdb/objfiles.h | |
parent | fd65fe1a180695a3500135bac6d5ed6a70b874de (diff) | |
download | gdb-54d83b8d3920eea4a0d545f1ff7ac2923d938e6c.zip gdb-54d83b8d3920eea4a0d545f1ff7ac2923d938e6c.tar.gz gdb-54d83b8d3920eea4a0d545f1ff7ac2923d938e6c.tar.bz2 |
Make unlink_objfile and put_objfile_before static
I noticed an obsolete comment just before unlink_objfile, and then I
noticed that both unlink_objfile and put_objfile_before could be
static. This patch makes these changes, and also moves unlink_objfile
earlier, so that a forward declaration is not needed.
Tested by rebuilding.
gdb/ChangeLog
2019-10-20 Tom Tromey <tom@tromey.com>
* objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
* objfiles.c (unlink_objfile): Move earlier. Now static. Remove
obsolete comment.
(put_objfile_before): Now static.
Change-Id: I1b5927a60fd1cc59bfc9c6761f61652a01ef13e0
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 2d921208..aa8e320 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -637,12 +637,8 @@ extern CORE_ADDR entry_point_address (void); extern void build_objfile_section_table (struct objfile *); -extern void put_objfile_before (struct objfile *, struct objfile *); - extern void add_separate_debug_objfile (struct objfile *, struct objfile *); -extern void unlink_objfile (struct objfile *); - extern void free_objfile_separate_debug (struct objfile *); extern void free_all_objfiles (void); |