Otherwise reg_buffer::initialize_variable_size_registers () won't be
able to resolve the types of variable-size registers.
return ((options & supported_options) == options);
}
+/* See gdb/process-stratum-target.h. */
+
+void
+linux_nat_target::supply_early_registers (regcache *regcache)
+{
+ if (regcache->has_variable_size_registers ())
+ /* We need the values of target description parameter early, so make
+ sure they're available. */
+ regcache->update_tdesc_parameters ();
+}
+
linux_nat_target::linux_nat_target ()
{
/* We don't change the stratum; this target will sit at
recognizes SIGTRAP only. */
virtual bool low_status_is_event (int status);
+ void supply_early_registers (regcache *regcache) override;
+
protected:
void post_startup_inferior (ptid_t) override;