projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash when exiting TUI with gdb -tui
[deliverable/binutils-gdb.git]
/
sim
/
cris
/
sim-if.c
diff --git
a/sim/cris/sim-if.c
b/sim/cris/sim-if.c
index 8e3b6677fa1a889f9ab45b8d55dcae955cab8e64..67e8d691591ca8606ec12f8b3e4463447963a7e2 100644
(file)
--- a/
sim/cris/sim-if.c
+++ b/
sim/cris/sim-if.c
@@
-1,5
+1,5
@@
/* Main simulator entry points specific to the CRIS.
/* Main simulator entry points specific to the CRIS.
- Copyright (C) 2004-20
17
Free Software Foundation, Inc.
+ Copyright (C) 2004-20
20
Free Software Foundation, Inc.
Contributed by Axis Communications.
This file is part of the GNU simulators.
Contributed by Axis Communications.
This file is part of the GNU simulators.
@@
-315,17
+315,17
@@
cris_set_section_offset_iterator (bfd *abfd, asection *s, void *vp)
SIM_DESC sd = p->sd;
int offset = p->offset;
SIM_DESC sd = p->sd;
int offset = p->offset;
- if ((bfd_
get_section_flags (abfd,
s) & SEC_ALLOC))
+ if ((bfd_
section_flags (
s) & SEC_ALLOC))
{
{
- bfd_vma vma = bfd_
get_section_vma (abfd,
s);
+ bfd_vma vma = bfd_
section_vma (
s);
- bfd_set_section_vma (
abfd,
s, vma + offset);
+ bfd_set_section_vma (s, vma + offset);
}
/* This seems clumsy and inaccurate, but let's stick to doing it the
same way as sim_analyze_program for consistency. */
}
/* This seems clumsy and inaccurate, but let's stick to doing it the
same way as sim_analyze_program for consistency. */
- if (strcmp (bfd_
get_section_name (abfd,
s), ".text") == 0)
- STATE_TEXT_START (sd) = bfd_
get_section_vma (abfd,
s);
+ if (strcmp (bfd_
section_name (
s), ".text") == 0)
+ STATE_TEXT_START (sd) = bfd_
section_vma (
s);
}
/* Adjust the start-address, LMA and VMA of a SD. Must be called
}
/* Adjust the start-address, LMA and VMA of a SD. Must be called
@@
-360,10
+360,10
@@
get_progbounds_iterator (bfd *abfd ATTRIBUTE_UNUSED, asection *s, void *vp)
{
struct progbounds *pbp = (struct progbounds *) vp;
{
struct progbounds *pbp = (struct progbounds *) vp;
- if ((bfd_
get_section_flags (abfd,
s) & SEC_ALLOC))
+ if ((bfd_
section_flags (
s) & SEC_ALLOC))
{
{
- bfd_size_type sec_size = bfd_
get_
section_size (s);
- bfd_size_type sec_start = bfd_
get_section_vma (abfd,
s);
+ bfd_size_type sec_size = bfd_section_size (s);
+ bfd_size_type sec_start = bfd_
section_vma (
s);
bfd_size_type sec_end = sec_start + sec_size;
if (sec_end > pbp->endmem)
bfd_size_type sec_end = sec_start + sec_size;
if (sec_end > pbp->endmem)
@@
-372,7
+372,7
@@
get_progbounds_iterator (bfd *abfd ATTRIBUTE_UNUSED, asection *s, void *vp)
if (sec_start < pbp->startmem)
pbp->startmem = sec_start;
if (sec_start < pbp->startmem)
pbp->startmem = sec_start;
- if ((bfd_
get_section_flags (abfd,
s) & SEC_LOAD))
+ if ((bfd_
section_flags (
s) & SEC_LOAD))
{
if (sec_end > pbp->end_loadmem)
pbp->end_loadmem = sec_end;
{
if (sec_end > pbp->end_loadmem)
pbp->end_loadmem = sec_end;
@@
-746,7
+746,7
@@
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
specified. */
if (abfd != NULL && !cris_bare_iron)
{
specified. */
if (abfd != NULL && !cris_bare_iron)
{
- char *name = bfd_get_filename (abfd);
+ c
onst c
har *name = bfd_get_filename (abfd);
char **my_environ = GET_ENVIRON ();
/* We use these maps to give the same behavior as the old xsim
simulator. */
char **my_environ = GET_ENVIRON ();
/* We use these maps to give the same behavior as the old xsim
simulator. */
@@
-786,7
+786,7
@@
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
/* Note that the linux kernel does not correctly compute the storage
needs for the static-exe AUX vector. */
/* Note that the linux kernel does not correctly compute the storage
needs for the static-exe AUX vector. */
- csp -=
sizeof (auxv_entries) / sizeof (auxv_entries[0]
) * 4 * 2;
+ csp -=
ARRAY_SIZE (auxv_entries
) * 4 * 2;
csp -= (envc + 1) * 4;
csp -= (my_argc + 1) * 4;
csp -= (envc + 1) * 4;
csp -= (my_argc + 1) * 4;
@@
-874,7
+874,7
@@
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
goto abandon_chip;
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
goto abandon_chip;
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
- for (i = 0; i <
sizeof (auxv_entries) / sizeof (auxv_entries[0]
); i++)
+ for (i = 0; i <
ARRAY_SIZE (auxv_entries
); i++)
{
write_dword (csp, auxv_entries[i].id);
write_dword (csp + 4,
{
write_dword (csp, auxv_entries[i].id);
write_dword (csp + 4,
This page took
0.025007 seconds
and
4
git commands to generate.