gdb/ChangeLog:
	PR symtab/17855
	* symfile.c (clear_symtab_users): Move call to breakpoint_re_set
	to end.
+2015-01-31  Joel Brobecker  <brobecker@adacore.com>
+
+       PR symtab/17855
+       * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
+       to end.
+
 2015-01-31  Doug Evans  <xdje42@gmail.com>
 
        * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
 
   clear_current_source_symtab_and_line ();
 
   clear_displays ();
-  if ((add_flags & SYMFILE_DEFER_BP_RESET) == 0)
-    breakpoint_re_set ();
   clear_last_displayed_sal ();
   clear_pc_function_cache ();
   observer_notify_new_objfile (NULL);
   /* Varobj may refer to old symbols, perform a cleanup.  */
   varobj_invalidate ();
 
+  /* Now that the various caches have been cleared, we can re_set
+     our breakpoints without risking it using stale data.  */
+  if ((add_flags & SYMFILE_DEFER_BP_RESET) == 0)
+    breakpoint_re_set ();
 }
 
 static void