ports/devel/gdb6/files/patch-target.c
Mark Peek 1d9dc859cd - Add support for specifying expressions in add-symbol-file (Nick Hibma)
- Add patches from src/ bits for:
  - kernel core debugging for i386
  - thread debugging for i386 and alpha (Doug Rabson)

This patch allows debugging -current kernels compiled with gcc-3.1.

Reviewed by:	dfr
Approved by:	obrien
2002-06-06 03:56:34 +00:00

11 lines
357 B
C

--- gdb/target.c Thu Jan 31 17:01:21 2002
+++ gdb/target.c Mon May 27 18:16:52 2002
@@ -1361,7 +1361,7 @@
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;