]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/record-btrace.c
bfd_section_* macros
[thirdparty/binutils-gdb.git] / gdb / record-btrace.c
index d402d8733dd3889b8dccae8375e20d412b91393b..b55459e4ad1a9198f710f979e3fdc8b35bd7a938 100644 (file)
@@ -1435,8 +1435,7 @@ record_btrace_target::xfer_partial (enum target_object object,
            if (section != NULL)
              {
                /* Check if the section we found is readonly.  */
-               if ((bfd_get_section_flags (section->the_bfd_section->owner,
-                                           section->the_bfd_section)
+               if ((bfd_section_flags (section->the_bfd_section)
                     & SEC_READONLY) != 0)
                  {
                    /* Truncate the request to fit into this section.  */