Re: [PATCH] gdb: use std::vector instead of alloca in core_target::get_core_register_section

Pedro Alves
2020-01-13T19:40:38Z

On 1/12/20 8:17 PM, Simon Marchi wrote:
> - contents = (char *) alloca (size);
> - if (! bfd_get_section_contents (core_bfd, section, contents,
> + std::vector<char> contents (size);
> + if (! bfd_get_section_contents (core_bfd, section, contents.data (),
> (file_ptr) 0, size))
> {

gdb::byte_vector

Thanks,
Pedro Alves