+static void
+hppa_hpux_observer_inferior_created (struct target_ops *objfile, int from_tty)
+{
+ struct gdbarch_tdep *tdep;
+ struct minimal_symbol *minsym;
+
+ tdep = gdbarch_tdep (current_gdbarch);
+
+ /* Some HP-UX related globals to clear when a new "main"
+ symbol file is loaded. HP-specific. */
+
+ /* Indicates HP-compiled code. */
+ deprecated_hp_som_som_object_present = 0;
+ /* Must reinitialize exception stuff. */
+ hp_cxx_exception_support_initialized = 0;
+
+ minsym = lookup_minimal_symbol ("$$dyncall_external", NULL, NULL);
+ if (minsym)
+ tdep->dyncall_external = SYMBOL_VALUE_ADDRESS (minsym);
+ else
+ tdep->dyncall_external = -1;
+
+ minsym = lookup_minimal_symbol ("_sr4export", NULL, NULL);
+ if (minsym)
+ tdep->sr4export = SYMBOL_VALUE_ADDRESS (minsym);
+ else
+ tdep->sr4export = -1;
+}