diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-24 22:59:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-25 09:06:09 -0400 |
commit | 324956617c35b0e204f54b8da8db2de2bd3b129e (patch) | |
tree | 27c477731c7b60c9a7fbbd88db7ce6b9ef453024 /gdb/jit.h | |
parent | 3f66685e9e92717af0cafa20480de5548aea7298 (diff) | |
download | gdb-324956617c35b0e204f54b8da8db2de2bd3b129e.zip gdb-324956617c35b0e204f54b8da8db2de2bd3b129e.tar.gz gdb-324956617c35b0e204f54b8da8db2de2bd3b129e.tar.bz2 |
gdb: make jit.c use the inferior_created inferior parameter
Use the inferior parameter now available in jit_inferior_created_hook.
It is passed down to jit_inferior_init, which uses it as much as
possible instead of the current inferior or current program space.
gdb/ChangeLog:
* jit.c (jit_reader_load_command): Pass current inferior.
(jit_inferior_init): Change parameter type to inferior, use it.
(jit_inferior_created): Remove.
(jit_inferior_created_hook): Pass inferior parameter down.
(_initialize_jit): Use jit_inferior_created_hook instead of
jit_inferior_created.
* jit.h (jit_inferior_created_hook): Add inferior parameter.
* infrun.c (follow_exec): Pass inferior to
jit_inferior_created_hook.
Change-Id: If3a2114a933370dd313d5abd623136d273cdb8fa
Diffstat (limited to 'gdb/jit.h')
-rw-r--r-- | gdb/jit.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ #ifndef JIT_H #define JIT_H +struct inferior; struct objfile; struct minimal_symbol; @@ -107,7 +108,7 @@ struct jited_objfile_data already JITed code. If it has already found the symbols, then it doesn't try again. */ -extern void jit_inferior_created_hook (void); +extern void jit_inferior_created_hook (inferior *inf); /* Re-establish the jit breakpoint(s). */ |