Mon Apr 22 00:02:43 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
- * Shared libaray/corefile changes from Peter Schauer:
+ * dbxread.c (end_psymtab): Initialize pst->symtab.
+
+ * core.c (core_open): Call ADD_SOLIB.
+
+ * tm-sparc.h: Include <sun4/reg.h> not <machine/reg.h>.
+ sparc-tdep.c: Don't include <machine/reg.h>.
+
+ * sun3-xdep.c [!TARGET_SUN3]: Just provide empty functions which
+ don't do anything.
+
+ * core.c (core_open): Add make_cleanup (pop_target, 0).
+
+ * Shared library/corefile changes from Peter Schauer:
core.c (core_close): Call CLEAR_SOLIB.
(core_open): Remove comment about "should deal with shared lib".
(core_xfer_memory): If we can't xfer the usual way, try the
subpst->n_static_syms = 0;
subpst->readin = 0;
+ subpst->symtab = 0;
subpst->read_symtab = dbx_psymtab_to_symtab;
subpst->next = partial_symtab_list;
#include <fcntl.h>
#include <sys/ptrace.h>
-#include <machine/reg.h>
#include <sys/file.h>
#include <sys/stat.h>
extern int errno;
+#if defined (TARGET_SUN3)
+/* All of this stuff is only relevant if both host and target are sun3. */
void
fetch_inferior_registers ()
{
fprintf (stderr, "Couldn't read float regs from core file\n");
}
}
+#else /* Not sun3 target. */
+/* These functions shouldn't be called when we're cross-debugging. */
+
+void
+fetch_inferior_registers ()
+{
+}
+
+/* ARGSUSED */
+store_inferior_registers (regno)
+ int regno;
+{
+}
+
+/* ARGSUSED */
+void
+fetch_core_registers (core_reg_sect, core_reg_size, which)
+ char *core_reg_sect;
+ unsigned core_reg_size;
+ int which;
+{
+}
+#endif /* Not sun3 target. */
/* Describe the pointer in each stack frame to the previous stack frame
(its caller). */
-/* I don't know whether this will work for cross-debugging, even if you
- do get the right reg.h. */
-#include <machine/reg.h>
+/* If you're not compiling this on a sun, you'll have to get a copy
+ of <sun4/reg.h> (also known as <machine/reg.h>). */
+#include <sun4/reg.h>
#define GET_RWINDOW_REG(FRAME, REG) \
(read_memory_integer ((CORE_ADDR)&((struct rwindow *)FRAME)->REG, 4))