aboutsummaryrefslogtreecommitdiff
path: root/gdb/observable.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-10-24 22:59:04 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-10-25 09:06:09 -0400
commita0ff652f4cacc3557795204ae5e73fa9f5d2ea30 (patch)
treebb8b15f2d5b725126975e410e8e785a36aeed376 /gdb/observable.h
parent0c70050a4bb65c6159dc7d65c1fba253c97837c8 (diff)
downloadbinutils-a0ff652f4cacc3557795204ae5e73fa9f5d2ea30.zip
binutils-a0ff652f4cacc3557795204ae5e73fa9f5d2ea30.tar.gz
binutils-a0ff652f4cacc3557795204ae5e73fa9f5d2ea30.tar.bz2
gdb: add inferior parameter to inferior_created observable
I think it would make sense for the inferior_created observable to say which inferior is being dealt with, rather than relying on it being the current inferior. This patch adds an inferior parameter to inferior_created, but does not change the callbacks to use it. gdb/ChangeLog: * aix-thread.c (aix_thread_inferior_created): Add inferior parameter. * bsd-uthread.c (bsd_uthread_inferior_created): Likewise. * dummy-frame.c (cleanup_dummy_frames): Likewise. * jit.c (jit_inferior_created): Likewise. * linux-thread-db.c (thread_db_inferior_created): Likewise. * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise. * observable.h (inferior_created): Likewise. * ravenscar-thread.c (ravenscar_inferior_created): Likewise. * symfile-mem.c (add_vsyscall_page): Likewise. * infcmd.c (post_create_inferior): Pass inferior argument. Change-Id: I2543d19ff055a9df6b269929faea10b27d2adc5e
Diffstat (limited to 'gdb/observable.h')
-rw-r--r--gdb/observable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/observable.h b/gdb/observable.h
index d9d0f14..9114b28 100644
--- a/gdb/observable.h
+++ b/gdb/observable.h
@@ -87,7 +87,7 @@ extern observable<> executable_changed;
instruction. For 'attach' and 'core', gdb calls this observer
immediately after connecting to the inferior, and before any
information on the inferior has been printed. */
-extern observable<> inferior_created;
+extern observable<inferior */* inferior */> inferior_created;
/* The status of process record for inferior inferior in gdb has
changed. The process record is started if STARTED is true, and