From: Michael Meissner Date: Wed, 23 Apr 1997 21:57:39 +0000 (+0000) Subject: Restore exec_bfd, needed for v850 debug code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3eba3fd0a5ba31ed8cbdce0d970ad43fc83b4e7;p=binutils-gdb.git Restore exec_bfd, needed for v850 debug code --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 22e0fb433e0..e9edbcf16e5 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 23 17:54:27 1997 Mike Meissner + + * run.c (exec_bfd): Add back in. + (main): Set exec_bfd. + Tue Apr 22 14:43:46 1997 Doug Evans * sim-load.c (sim_load_file): #include for NULL. diff --git a/sim/common/run.c b/sim/common/run.c index acdbab2ec12..9728a32f28b 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -56,6 +56,9 @@ extern host_callback default_callback; static char *myname; +/* bfd descriptor of the executable. Same name as gdb uses. */ +bfd *exec_bfd; + /* NOTE: sim_size() and sim_trace() are going away */ extern void sim_size PARAMS ((int i)); @@ -179,7 +182,7 @@ main (ac, av) sim_set_callbacks (NULL, &default_callback); default_callback.init (&default_callback); - abfd = bfd_openr (name, 0); + exec_bfd = abfd = bfd_openr (name, 0); if (!abfd) { fprintf (stderr, "%s: can't open %s: %s\n",