Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu enable pthread debugging
details: https://anonhg.NetBSD.org/src/rev/a56bb7da1352
branches: trunk
changeset: 552309:a56bb7da1352
user: cl <cl%NetBSD.org@localhost>
date: Tue Sep 23 13:32:52 2003 +0000
description:
enable pthread debugging
diffstat:
gnu/dist/gdb/gdb/m68knbsd-nat.c | 55 +++++++++++++++++++++++++++++++++++++
gnu/usr.bin/gdb53/arch/m68k/defs.mk | 3 +-
gnu/usr.bin/gdb53/arch/m68k/init.c | 2 +
3 files changed, 59 insertions(+), 1 deletions(-)
diffs (105 lines):
diff -r 1bdb34cb4b58 -r a56bb7da1352 gnu/dist/gdb/gdb/m68knbsd-nat.c
--- a/gnu/dist/gdb/gdb/m68knbsd-nat.c Tue Sep 23 13:10:32 2003 +0000
+++ b/gnu/dist/gdb/gdb/m68knbsd-nat.c Tue Sep 23 13:32:52 2003 +0000
@@ -96,6 +96,32 @@
supply_register (i, freg + fpregmap[i - FP0_REGNUM]);
}
+static void
+fill_regs (regs)
+ char *regs;
+{
+ int i;
+
+ for (i = D0_REGNUM; i <= PC_REGNUM; i++)
+ *(int *)(regs + regmap[i - D0_REGNUM]) = *(int *) ®isters[REGISTER_BYTE (i)];
+}
+
+static void
+fill_fpregs(freg)
+ char *freg;
+{
+ int i;
+ char *to;
+ char *from;
+
+ for (i = FP0_REGNUM; i <= FPI_REGNUM; i++)
+ {
+ from = (char *) ®isters[REGISTER_BYTE (i)];
+ to = (char *) (freg + fpregmap[i - FP0_REGNUM]);
+ memcpy (to, from, REGISTER_RAW_SIZE (i));
+ }
+}
+
void
fetch_inferior_registers (int regno)
{
@@ -249,3 +275,32 @@
add_core_fns (&m68knbsd_core_fns);
add_core_fns (&m68knbsd_elfcore_fns);
}
+
+void
+nbsd_reg_to_internal (rgs)
+ char *rgs;
+{
+ supply_regs(rgs);
+}
+
+void
+nbsd_fpreg_to_internal (frgs)
+ char *frgs;
+{
+ supply_fpregs(frgs);
+}
+
+void
+nbsd_internal_to_reg (regs)
+ char *regs;
+{
+ fill_regs(regs);
+}
+
+void
+nbsd_internal_to_fpreg (fpregs)
+ char *fpregs;
+{
+ fill_fpregs(fpregs);
+}
+
diff -r 1bdb34cb4b58 -r a56bb7da1352 gnu/usr.bin/gdb53/arch/m68k/defs.mk
--- a/gnu/usr.bin/gdb53/arch/m68k/defs.mk Tue Sep 23 13:10:32 2003 +0000
+++ b/gnu/usr.bin/gdb53/arch/m68k/defs.mk Tue Sep 23 13:32:52 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: defs.mk,v 1.2 2003/09/23 13:10:32 cl Exp $
+# $NetBSD: defs.mk,v 1.3 2003/09/23 13:32:53 cl Exp $
G_GDB_OBJS=\
annotate.o \
arch-utils.o \
@@ -100,6 +100,7 @@
minsyms.o \
mipsread.o \
nbsd-tdep.o \
+nbsd-thread.o \
nlmread.o \
objfiles.o \
osabi.o \
diff -r 1bdb34cb4b58 -r a56bb7da1352 gnu/usr.bin/gdb53/arch/m68k/init.c
--- a/gnu/usr.bin/gdb53/arch/m68k/init.c Tue Sep 23 13:10:32 2003 +0000
+++ b/gnu/usr.bin/gdb53/arch/m68k/init.c Tue Sep 23 13:32:52 2003 +0000
@@ -27,6 +27,7 @@
extern initialize_file_ftype _initialize_copying;
extern initialize_file_ftype _initialize_m68k_tdep;
extern initialize_file_ftype _initialize_m68knbsd_tdep;
+extern initialize_file_ftype _initialize_nbsd_thread;
extern initialize_file_ftype _initialize_corelow;
extern initialize_file_ftype _initialize_solib;
extern initialize_file_ftype _initialize_svr4_solib;
@@ -114,6 +115,7 @@
_initialize_copying ();
_initialize_m68k_tdep ();
_initialize_m68knbsd_tdep ();
+ _initialize_nbsd_thread ();
_initialize_corelow ();
_initialize_solib ();
_initialize_svr4_solib ();
Home |
Main Index |
Thread Index |
Old Index