[PATCH] Place displaced step data directly in inferior structure
Philippe Waroquiers
philippe.waroquiers@skynet.be
Sat Nov 24 13:22:00 GMT 2018
On Fri, 2018-11-23 at 21:05 +0000, Simon Marchi wrote:
> At the same time, I changed step_saved_copy to be a gdb::byte_vector, so
> it is automatically freed on destruction (which should plug the leak
> reported here [1]).
>
> [1] https://sourceware.org/ml/gdb-patches/2018-11/msg00202.html
Re-tested with your patch+valgrind, and the leak is effectively fixed.
The re-testing shown that the 'open_source_file' leak was re-introduced
(which I re-fixed as under the obvious rule) and some definitely leaked
blocks in linespec.c.
I will investigate ...
Philippe
More information about the Gdb-patches
mailing list