diff options
Diffstat (limited to 'gdbserver/linux-riscv-low.cc')
-rw-r--r-- | gdbserver/linux-riscv-low.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdbserver/linux-riscv-low.cc b/gdbserver/linux-riscv-low.cc index 1c6e8c4..32f191e 100644 --- a/gdbserver/linux-riscv-low.cc +++ b/gdbserver/linux-riscv-low.cc @@ -88,11 +88,11 @@ riscv_target::low_arch_setup () const riscv_gdbarch_features features = riscv_linux_read_features (lwpid_of (current_thread)); - target_desc *tdesc = riscv_create_target_description (features); + target_desc_up tdesc = riscv_create_target_description (features); if (!tdesc->expedite_regs) - init_target_desc (tdesc, expedite_regs); - current_process ()->tdesc = tdesc; + init_target_desc (tdesc.get (), expedite_regs); + current_process ()->tdesc = tdesc.release (); } /* Collect GPRs from REGCACHE into BUF. */ |