+2020-10-24 Simon Marchi <simon.marchi@efficios.com>
+
+ * 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.
+
2020-10-24 Joel Brobecker <brobecker@adacore.com>
GDB 10.1 released.
/* Attach to process specified by ARGS. */
static void
-aix_thread_inferior_created ()
+aix_thread_inferior_created (inferior *inf)
{
pd_enable ();
}
}
static void
-bsd_uthread_inferior_created ()
+bsd_uthread_inferior_created (inferior *inf)
{
bsd_uthread_activate (NULL);
}
them up at least once whenever we start a new inferior. */
static void
-cleanup_dummy_frames ()
+cleanup_dummy_frames (inferior *inf)
{
while (dummy_frame_stack != NULL)
remove_dummy_frame (&dummy_frame_stack);
if the now pushed target supports hardware watchpoints. */
breakpoint_re_set ();
- gdb::observers::inferior_created.notify ();
+ gdb::observers::inferior_created.notify (current_inferior ());
}
/* Kill the inferior if already running. This function is designed
/* inferior_created observer. */
static void
-jit_inferior_created ()
+jit_inferior_created (inferior *inf)
{
jit_inferior_created_hook ();
}
This handles the case of debugging statically linked executables. */
static void
-thread_db_inferior_created ()
+thread_db_inferior_created (inferior *inf)
{
check_pid_namespace_match ();
check_for_thread_db ();
static int target_is_uclinux;
static void
-m68k_linux_inferior_created ()
+m68k_linux_inferior_created (inferior *inf)
{
/* Record that we will need to re-evaluate whether we are running on a
uClinux or normal GNU/Linux target (see m68k_linux_get_sigtramp_info). */
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
/* Observer on inferior_created: push ravenscar thread stratum if needed. */
static void
-ravenscar_inferior_created ()
+ravenscar_inferior_created (inferior *inf)
{
const char *err_msg;
This function is called via the inferior_created observer. */
static void
-add_vsyscall_page ()
+add_vsyscall_page (inferior *inf)
{
struct mem_range vsyscall_range;