+2020-12-04 Simon Marchi <simon.marchi@efficios.com>
+
+ * linux-tdep.c (get_linux_inferior_data): Add inferior
+ parameter.
+ (linux_vsyscall_range): Pass current inferior.
+
2020-12-04 Simon Marchi <simon.marchi@efficios.com>
* infrun.c (displaced_step_prepare_throw): Change return type to
valid INFO pointer. */
static struct linux_info *
-get_linux_inferior_data (void)
+get_linux_inferior_data (inferior *inf)
{
- struct linux_info *info;
- struct inferior *inf = current_inferior ();
+ linux_info *info = linux_inferior_data.get (inf);
- info = linux_inferior_data.get (inf);
- if (info == NULL)
+ if (info == nullptr)
info = linux_inferior_data.emplace (inf);
return info;
static int
linux_vsyscall_range (struct gdbarch *gdbarch, struct mem_range *range)
{
- struct linux_info *info = get_linux_inferior_data ();
+ struct linux_info *info = get_linux_inferior_data (current_inferior ());
if (info->vsyscall_range_p == 0)
{