aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-08-27 00:44:05 +0000
committerAndrew Cagney <cagney@redhat.com>1997-08-27 00:44:05 +0000
commit9f64f00adaa7fb89b13ed291a778a262260dc409 (patch)
tree358358f339c53676320686d858f3fba1b56b299f /sim/ppc/sim_calls.c
parentd07dddd2b24abd93f92412a6764129f29c1acc0e (diff)
downloadgdb-9f64f00adaa7fb89b13ed291a778a262260dc409.zip
gdb-9f64f00adaa7fb89b13ed291a778a262260dc409.tar.gz
gdb-9f64f00adaa7fb89b13ed291a778a262260dc409.tar.bz2
* idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
sign bit using 64 bit and not a 32 bit mask. * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after it has been used, not before.
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index 4866903..228b7c7 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -113,9 +113,6 @@ sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty)
/* bring in all the data section */
psim_init(simulator);
- /* release the arguments */
- freeargv(argv);
-
/* get the start address */
if (abfd != NULL)
entry_point = bfd_get_start_address (abfd);
@@ -136,6 +133,9 @@ sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty)
bfd_close (abfd);
}
+ /* release the arguments */
+ freeargv(argv);
+
return SIM_RC_OK;
}