1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01_task_info_to_stack.dpatch by Troy Heber <troyh@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad crash-4.0-4.1~/task.c crash-4.0-4.1/task.c
9
--- crash-4.0-4.1~/task.c 2007-04-26 14:45:59.000000000 -0600
10
+++ crash-4.0-4.1/task.c 2007-05-24 13:01:56.000000000 -0600
12
get_idle_threads(&tt->idle_threads[0], kt->cpus);
15
- MEMBER_OFFSET_INIT(task_struct_thread_info, "task_struct",
18
+ if (MEMBER_EXISTS("task_struct", "thread_info"))
19
+ MEMBER_OFFSET_INIT(task_struct_thread_info, "task_struct",
21
+ else if (MEMBER_EXISTS("task_struct", "stack"))
22
+ MEMBER_OFFSET_INIT(task_struct_thread_info, "task_struct",
25
+ ASSIGN_OFFSET(task_struct_thread_info) = INVALID_OFFSET;
27
if (VALID_MEMBER(task_struct_thread_info)) {
28
MEMBER_OFFSET_INIT(thread_info_task, "thread_info", "task");
29
MEMBER_OFFSET_INIT(thread_info_cpu, "thread_info", "cpu");