This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Reshuffle code in i386fbsd-nat.c
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 26 Sep 2004 21:45:20 +0200 (CEST)
- Subject: [COMMIT] Reshuffle code in i386fbsd-nat.c
This is a bit more logical.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
code together.
Index: i386fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-nat.c,v
retrieving revision 1.7
diff -u -p -r1.7 i386fbsd-nat.c
--- i386fbsd-nat.c 19 Sep 2004 20:49:26 -0000 1.7
+++ i386fbsd-nat.c 26 Sep 2004 19:43:39 -0000
@@ -131,6 +131,9 @@ _initialize_i386fbsd_nat (void)
t->to_make_corefile_notes = fbsd_make_corefile_notes;
add_target (t);
+ /* Support debugging kernel virtual memory images. */
+ bsd_kvm_add_target (i386fbsd_supply_pcb);
+
/* FreeBSD provides a kern.ps_strings sysctl that we can use to
locate the sigtramp. That way we can still recognize a sigtramp
if its location is changed in a new kernel. Of course this is
@@ -153,7 +156,4 @@ _initialize_i386fbsd_nat (void)
}
}
#endif
-
- /* Support debugging kernel virtual memory images. */
- bsd_kvm_add_target (i386fbsd_supply_pcb);
}