* xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 28 Sep 1994 17:37:32 +0000 (17:37 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 28 Sep 1994 17:37:32 +0000 (17:37 +0000)
gdb/ChangeLog
gdb/xcoffexec.c

index 2c4da0cea7d4c63e1e625add73de06f3a2dd0547..15849f3082ba646e331ccf3bbdb56452634acb51 100644 (file)
@@ -1,5 +1,7 @@
 Wed Sep 28 08:59:14 1994  Jim Kingdon  (kingdon@cygnus.com)
 
+       * xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
+
        * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were
        ignoring before.  But continue to ignore XMC_DS.
 
index 1562b7b1463e996c2f5225b86265a7ed6b27c5d3..775ccf8f0d78c1542d9e213e209f915ed34c263e 100644 (file)
@@ -76,7 +76,7 @@ extern struct target_ops exec_ops;
 
 static void
 exec_close (quitting)
-int quitting;
+     int quitting;
 {
   register struct vmap *vp, *nxt;
   int need_symtab_cleanup = 0;
@@ -116,7 +116,9 @@ int quitting;
       exec_ops.to_sections_end = NULL;
     }
 
-  if (need_symtab_cleanup)
+  /* If we are quitting, we don't want to call breakpoint_re_set which may
+     output messages which would just be confusing in this context.  */
+  if (!quitting && need_symtab_cleanup)
     clear_symtab_users ();
 }