aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-07-22 15:56:08 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-07-22 15:56:08 +0200
commitc1072906f1e55711e5f6010c209a472fda80cf97 (patch)
tree8ad266e49231e1fa879b648ca361d4d10181769c /gdb
parentc8474dc35380ff7426ec4c555512c098fa70dd04 (diff)
downloadgdb-c1072906f1e55711e5f6010c209a472fda80cf97.zip
gdb-c1072906f1e55711e5f6010c209a472fda80cf97.tar.gz
gdb-c1072906f1e55711e5f6010c209a472fda80cf97.tar.bz2
gdb/jit: remove jiter_objfile_data -> objfile back-link
This is no longer needed, remove it. gdb/ChangeLog: 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: Remove. * jit.c (get_jiter_objfile_data): Update.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/jit.c2
-rw-r--r--gdb/jit.h7
3 files changed, 7 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 83f20ac..e742817 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
+ Remove.
+ * jit.c (get_jiter_objfile_data): Update.
+
2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Simon Marchi <simon.marchi@polymtl.ca>
diff --git a/gdb/jit.c b/gdb/jit.c
index 0e1cb20..85b644d 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 b78c35d..739a8f3 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;