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 TCL error in gdb.python/py-format-string.exp.
[deliverable/binutils-gdb.git]
/
sim
/
common
/
sim-load.c
diff --git
a/sim/common/sim-load.c
b/sim/common/sim-load.c
index fee6e8f1c12752f07b5014cf9ede4940b5c75709..4ff11c7cd52e5b3d23b6d6664ec267f9fda1710e 100644
(file)
--- a/
sim/common/sim-load.c
+++ b/
sim/common/sim-load.c
@@
-1,5
+1,5
@@
/* Utility to load a file into the simulator.
/* Utility to load a file into the simulator.
- Copyright (C) 1997-20
16
Free Software Foundation, Inc.
+ Copyright (C) 1997-20
20
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-19,7
+19,7
@@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
to suggest that they shouldn't :-)]. */
#ifdef HAVE_CONFIG_H
to suggest that they shouldn't :-)]. */
#ifdef HAVE_CONFIG_H
-#include "c
c
onfig.h"
+#include "config.h"
#endif
#include "ansidecl.h"
#include <stdio.h> /* for NULL */
#endif
#include "ansidecl.h"
#include <stdio.h> /* for NULL */
@@
-101,7
+101,7
@@
sim_load_file (SIM_DESC sd, const char *myname, host_callback *callback,
{
bfd_size_type size;
{
bfd_size_type size;
- size = bfd_
get_
section_size (s);
+ size = bfd_section_size (s);
if (size > 0)
{
unsigned char *buffer;
if (size > 0)
{
unsigned char *buffer;
@@
-119,13
+119,13
@@
sim_load_file (SIM_DESC sd, const char *myname, host_callback *callback,
return NULL;
}
if (lma_p)
return NULL;
}
if (lma_p)
- lma = bfd_section_lma (
result_bfd,
s);
+ lma = bfd_section_lma (s);
else
else
- lma = bfd_section_vma (
result_bfd,
s);
+ lma = bfd_section_vma (s);
if (verbose_p)
{
xprintf (callback, "Loading section %s, size 0x%lx %s ",
if (verbose_p)
{
xprintf (callback, "Loading section %s, size 0x%lx %s ",
- bfd_
get_section_name (result_bfd,
s),
+ bfd_
section_name (
s),
(unsigned long) size,
(lma_p ? "lma" : "vma"));
xprintf_bfd_vma (callback, lma);
(unsigned long) size,
(lma_p ? "lma" : "vma"));
xprintf_bfd_vma (callback, lma);
This page took
0.026021 seconds
and
4
git commands to generate.