public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [FYI] Two minor changes in ctfread.c
@ 2020-01-27 13:31 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-01-27 13:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

I noticed a couple of minor issues in ctfread.c, both fixed by this
patch:

* ctf_fp_info was not indented properly; and
* _initialize_ctfread is no longer needed

gdb/ChangeLog
2020-01-26  Tom Tromey  <tom@tromey.com>

	* ctfread.c (struct ctf_fp_info): Reindent.
	(_initialize_ctfread): Remove.

Change-Id: I72707b74bc59e6e426b3a7bc8843d96c0d786f1e
---
 gdb/ChangeLog |  5 +++++
 gdb/ctfread.c | 12 +++---------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index d363ce6a11d..844ab7b9db7 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -88,9 +88,9 @@ static const struct objfile_key<htab, htab_deleter> ctf_tid_key;
 
 struct ctf_fp_info
 {
-    explicit ctf_fp_info (ctf_file_t *cfp) : fp (cfp) {}
-    ~ctf_fp_info ();
-    ctf_file_t *fp;
+  explicit ctf_fp_info (ctf_file_t *cfp) : fp (cfp) {}
+  ~ctf_fp_info ();
+  ctf_file_t *fp;
 };
 
 /* Cleanup function for the ctf_file_key data.  */
@@ -1485,9 +1485,3 @@ elfctf_build_psymtabs (struct objfile *of)
 
   scan_partial_symbols (fp, of);
 }
-
-void _initialize_ctfread ();
-void
-_initialize_ctfread ()
-{
-}
-- 
2.17.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-27  1:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27 13:31 [FYI] Two minor changes in ctfread.c Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).