From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: [PATCH 7/8] remove objfile_to_front
Date: Tue, 26 Nov 2013 22:37:00 -0000 [thread overview]
Message-ID: <1385502587-29757-8-git-send-email-tromey@redhat.com> (raw)
In-Reply-To: <1385502587-29757-1-git-send-email-tromey@redhat.com>
I happened to notice that nothing uses objfile_to_front.
This patch removes it.
2013-11-26 Tom Tromey <tromey@redhat.com>
* objfiles.h (objfile_to_front): Remove.
* objfiles.c (objfile_to_front): Remove.
---
gdb/ChangeLog | 5 +++++
gdb/objfiles.c | 20 --------------------
gdb/objfiles.h | 2 --
3 files changed, 5 insertions(+), 22 deletions(-)
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ba930fa..e8d641f 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -438,26 +438,6 @@ put_objfile_before (struct objfile *objfile, struct objfile *before_this)
_("put_objfile_before: before objfile not in list"));
}
-/* Put OBJFILE at the front of the list. */
-
-void
-objfile_to_front (struct objfile *objfile)
-{
- struct objfile **objp;
- for (objp = &object_files; *objp != NULL; objp = &((*objp)->next))
- {
- if (*objp == objfile)
- {
- /* Unhook it from where it is. */
- *objp = objfile->next;
- /* Put it in the front. */
- objfile->next = object_files;
- object_files = objfile;
- break;
- }
- }
-}
-
/* Unlink OBJFILE from the list of known objfiles, if it is found in the
list.
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 9bca812..3f08d4b 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -453,8 +453,6 @@ extern struct objfile *objfile_separate_debug_iterate (const struct objfile *,
extern void put_objfile_before (struct objfile *, struct objfile *);
-extern void objfile_to_front (struct objfile *);
-
extern void add_separate_debug_objfile (struct objfile *, struct objfile *);
extern void unlink_objfile (struct objfile *);
--
1.8.1.4
next prev parent reply other threads:[~2013-11-26 22:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 21:50 [PATCH 0/8] trivia Tom Tromey
2013-11-26 21:50 ` [PATCH 2/8] make symtab::dirname const Tom Tromey
2013-11-26 21:57 ` [PATCH 1/8] make symtab::filename const Tom Tromey
2013-11-26 22:12 ` [PATCH 3/8] put the psymtab filename in the filename bcache Tom Tromey
2013-11-26 22:27 ` [PATCH 8/8] update free_objfile comment Tom Tromey
2013-11-26 22:37 ` Tom Tromey [this message]
2013-11-26 22:44 ` [PATCH 5/8] pack partial_symtab for space Tom Tromey
2013-11-27 8:34 ` [PATCH 6/8] remove unnecessary declaration Tom Tromey
2013-11-27 9:49 ` [PATCH 4/8] remove some stale FIXMEs Tom Tromey
2013-11-27 12:25 ` Pedro Alves
2013-11-27 15:56 ` Tom Tromey
2013-11-27 17:21 ` Tom Tromey
2013-11-27 17:52 ` Pedro Alves
2013-12-06 19:12 ` [PATCH 0/8] trivia Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385502587-29757-8-git-send-email-tromey@redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox