diff options
author | Michael Meissner <gnu@the-meissners.org> | 1997-04-23 21:57:39 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1997-04-23 21:57:39 +0000 |
commit | e3eba3fd0a5ba31ed8cbdce0d970ad43fc83b4e7 (patch) | |
tree | 565890e7f798b6177b5d35c9117da6dafb8abdf3 /sim/common/run.c | |
parent | 99c71408b24de6c1078d17ba98a02db5f0c382ff (diff) | |
download | gdb-e3eba3fd0a5ba31ed8cbdce0d970ad43fc83b4e7.zip gdb-e3eba3fd0a5ba31ed8cbdce0d970ad43fc83b4e7.tar.gz gdb-e3eba3fd0a5ba31ed8cbdce0d970ad43fc83b4e7.tar.bz2 |
Restore exec_bfd, needed for v850 debug code
Diffstat (limited to 'sim/common/run.c')
-rw-r--r-- | sim/common/run.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/common/run.c b/sim/common/run.c index acdbab2..9728a32 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", |