* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
[deliverable/binutils-gdb.git] / gdb / coff-solib.c
index 01ffc9c6347f7c216d3c97ae4cc282d17e41e7e2..4b8ab00024d8d5644848bf6fc128742417f6b223 100644 (file)
@@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "defs.h"
 
+#include "frame.h"
 #include "bfd.h"
 #include "gdbcore.h"
 #include "symtab.h"
@@ -67,7 +68,7 @@ coff_solib_add (arg_string, from_tty, target)
 
       libsize = bfd_section_size (exec_bfd, libsect);
 
-      lib = alloca (libsize);
+      lib = (unsigned char *) alloca (libsize);
 
       bfd_get_section_contents (exec_bfd, libsect, lib, 0, libsize);
 
@@ -97,6 +98,10 @@ coff_solib_add (arg_string, from_tty, target)
          libsize -= len * 4;
          lib += len * 4;
        }
+
+      /* Getting new symbols may change our opinion about what is
+        frameless.  */
+      reinit_frame_cache ();
     }
 }
 
This page took 0.023499 seconds and 4 git commands to generate.