[PATCH v2 15/22] Make exceptions use std::string and be self-managing
Pedro Alves
palves@redhat.com
Wed Apr 3 18:28:00 GMT 2019
On 04/03/2019 06:58 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> I think fixing this isn't hard, so I think we should do it from the
> Pedro> start -- instead of gdb_exception holding a std::string, hold a
> Pedro> reference counted immutable heap-allocated C string.
>
> I'll do this.
>
> How about just a std::shared_ptr<std::string>?
That should be fine.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list