aboutsummaryrefslogtreecommitdiff
path: root/devel/gdb66/files/patch-target.c
blob: 31a2da3a9d1b6009a2748e7b4834b13f14aef756 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

$FreeBSD$

--- gdb/target.c.orig
+++ gdb/target.c
@@ -1487,13 +1487,14 @@
   struct target_ops **t;
   struct target_ops *runable = NULL;
   int count;
+  extern int kernel_debugging;
 
   count = 0;
 
   for (t = target_structs; t < target_structs + target_struct_size;
        ++t)
     {
-      if ((*t)->to_stratum == core_stratum)
+      if ((*t)->to_stratum == (kernel_debugging ? kcore_stratum : core_stratum))
 	{
 	  runable = *t;
 	  ++count;