diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-01 11:28:09 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:01:07 +0000 |
commit | fab2b376e305bfb4c55a51a15d8c7a293628d735 (patch) | |
tree | 0a2a6206f8486411f8d1ebbb8857ec4d16934c26 /sim/rx | |
parent | ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3 (diff) | |
download | gdb-fab2b376e305bfb4c55a51a15d8c7a293628d735.zip gdb-fab2b376e305bfb4c55a51a15d8c7a293628d735.tar.gz gdb-fab2b376e305bfb4c55a51a15d8c7a293628d735.tar.bz2 |
sim/rx: add some missing includes
In load.c there's some GCC warnings about undefined
functions (bfd_get_elf_phdr_upper_bound and bfd_get_elf_phdrs). To
get the declarations of these functions include 'elf-bfd.h'. This
headers also pulls in other elf related headers, like 'elf/internal.h'
and 'elf/common.h', so these no longer need to be explicitly included
from load.c.
In trace.c and include for trace.h is missing, again this results in
GCC warnings for missing function declarations.
sim/rx/ChangeLog:
* load.c: Replace 'elf/internal.h' and 'elf/common.h' includes
with 'elf-bfd.h' include.
* trace.c: Add 'trace.h' include.
Diffstat (limited to 'sim/rx')
-rw-r--r-- | sim/rx/ChangeLog | 6 | ||||
-rw-r--r-- | sim/rx/load.c | 3 | ||||
-rw-r--r-- | sim/rx/trace.c | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index c67b8d5f..d71bb44 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,5 +1,11 @@ 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * load.c: Replace 'elf/internal.h' and 'elf/common.h' includes + with 'elf-bfd.h' include. + * trace.c: Add 'trace.h' include. + +2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * reg.c (trace_register_changes): Use PRIx64 in printf format string. diff --git a/sim/rx/load.c b/sim/rx/load.c index d74f4ff..a8a4733 100644 --- a/sim/rx/load.c +++ b/sim/rx/load.c @@ -28,8 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "cpu.h" #include "mem.h" #include "load.h" -#include "elf/internal.h" -#include "elf/common.h" +#include "elf-bfd.h" /* Helper function for invoking a GDB-specified printf. */ static void diff --git a/sim/rx/trace.c b/sim/rx/trace.c index 9d9f2df..e5db49b 100644 --- a/sim/rx/trace.c +++ b/sim/rx/trace.c @@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "cpu.h" #include "mem.h" #include "load.h" +#include "trace.h" static int sim_dis_read (bfd_vma memaddr, bfd_byte * ptr, unsigned int length, |