[PATCH v4 7/9] gdb/jit: remove jiter_objfile_data -> objfile back-link

Tankut Baris Aktemur tankut.baris.aktemur@intel.com
Tue Jul 21 18:06:09 GMT 2020


From: Simon Marchi <simon.marchi@polymtl.ca>

This is no longer needed, remove it.

gdb/ChangeLog:
2020-MM-DD  Simon Marchi  <simon.marchi@polymtl.ca>

	* jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
	Remove.
	* jit.c (get_jiter_objfile_data): Update.
---
 gdb/jit.c | 2 +-
 gdb/jit.h | 7 -------
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/gdb/jit.c b/gdb/jit.c
index 0e1cb200618..85b644dde06 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -254,7 +254,7 @@ static jiter_objfile_data *
 get_jiter_objfile_data (objfile *objf)
 {
   if (objf->jiter_data == nullptr)
-    objf->jiter_data.reset (new jiter_objfile_data (objf));
+    objf->jiter_data.reset (new jiter_objfile_data ());
 
   return objf->jiter_data.get ();
 }
diff --git a/gdb/jit.h b/gdb/jit.h
index b78c35d5184..739a8f30e2c 100644
--- a/gdb/jit.h
+++ b/gdb/jit.h
@@ -72,15 +72,8 @@ struct jit_descriptor
 
 struct jiter_objfile_data
 {
-  jiter_objfile_data (struct objfile *objfile)
-    : objfile (objfile)
-  {}
-
   ~jiter_objfile_data ();
 
-  /* Back-link to the objfile. */
-  struct objfile *objfile;
-
   /* Symbol for __jit_debug_register_code.  */
   minimal_symbol *register_code = nullptr;
 
-- 
2.17.1



More information about the Gdb-patches mailing list