[PATCH 6/7] gdb: select "Cygwin" OS ABI for Cygwin binaries

Tom Tromey tom@tromey.com
Thu Apr 2 13:22:18 GMT 2020


While reading Pedro's note I noticed:

>> +  const gdb_byte *const idata_contents
>> +    = gdb_bfd_map_section (idata_section, &idata_size);

There's no way to ever release this data.  Since it's only used once, it
may be better to use bfd_get_full_section_contents, so the memory can be
freed when done.

Tom


More information about the Gdb-patches mailing list