[PATCH,V6 07/10] readelf/objdump: support for CTF Frame section

Nick Clifton nickc@redhat.com
Mon Aug 15 13:11:21 GMT 2022


Hi Indu,

> +static bfd_byte*
> +read_section_ctf_frame (bfd *abfd, const char *sect_name, bfd_size_type *size_ptr,
> +			bfd_vma *ctf_frame_vma)
> +{
> +  asection *ctf_frame_sect;
> +  bfd_byte *contents;
> +
> +  ctf_frame_sect = bfd_get_section_by_name (abfd, sect_name);
> +  if (ctf_frame_sect == NULL)
> +    {
> +      printf (_("No %s section present\n\n"),
> +	      sanitize_string (sect_name));
> +      return false;

Typo - you probably wanted to "return NULL" here....

Cheers
   Nick



More information about the Binutils mailing list