diff options
Diffstat (limited to 'gdb/auto-load.c')
-rw-r--r-- | gdb/auto-load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/auto-load.c b/gdb/auto-load.c index 9798ab1..136d53f 100644 --- a/gdb/auto-load.c +++ b/gdb/auto-load.c @@ -1116,7 +1116,7 @@ auto_load_section_scripts (struct objfile *objfile, const char *section_name) scripts_sect = bfd_get_section_by_name (abfd, section_name); if (scripts_sect == NULL - || (bfd_get_section_flags (abfd, scripts_sect) & SEC_HAS_CONTENTS) == 0) + || (bfd_section_flags (scripts_sect) & SEC_HAS_CONTENTS) == 0) return; if (!bfd_get_full_section_contents (abfd, scripts_sect, &data)) @@ -1128,7 +1128,7 @@ auto_load_section_scripts (struct objfile *objfile, const char *section_name) char *p = (char *) data; source_section_scripts (objfile, section_name, p, - p + bfd_get_section_size (scripts_sect)); + p + bfd_section_size (scripts_sect)); } } |