X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Frx%2Fgdb-if.c;h=8d265f1324cd668e8b68dbd61eaf0d2cbb63dfe9;hb=1a20473059c7a088b9f3c4188c09976eebbc3ab4;hp=d983219053e30565057c69a4d0040e6bd98ec05b;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index d983219053..8d265f1324 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -1,6 +1,6 @@ /* gdb-if.c -- sim interface to GDB. -Copyright (C) 2008-2018 Free Software Foundation, Inc. +Copyright (C) 2008-2020 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. @@ -164,14 +164,14 @@ build_swap_list (struct bfd *abfd) struct swap_list *sl; bfd_size_type size; - size = bfd_get_section_size (s); + size = bfd_section_size (s); if (size <= 0) continue; sl = malloc (sizeof (struct swap_list)); assert (sl != NULL); sl->next = swap_list; - sl->start = bfd_section_lma (abfd, s); + sl->start = bfd_section_lma (s); sl->end = sl->start + size; swap_list = sl; }