]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/record: Speeding up recording in RISC-V
authortimurgol007 <timurgol007@gmail.com>
Wed, 8 Oct 2025 15:44:19 +0000 (18:44 +0300)
committertimurgol007 <timurgol007@gmail.com>
Wed, 22 Oct 2025 15:39:40 +0000 (18:39 +0300)
commitbef948d551a6c06e2d2e482eba1467d65ac691a0
tree433d2ff26808fbc4ab8385b06d3bcf802726fc8c
parent46eeb5132aed207cd4c822df15106b72c740b94d
gdb/record: Speeding up recording in RISC-V

I measured that removing saving mem chunks and regs to std::vector before
calling API functions speeds up stepping up to 15%, so I added this
optimization (as Guinevere Larsen <guinevere@redhat.com> recommended in
initial support). It turns out that after this, the m_record_type and
m_error_occured no longer needed, so I removed them too.

Approved-By: Guinevere Larsen <guinevere@redhat.com>
gdb/riscv-tdep.c