30 lines
1.5 KiB
Plaintext
Executable File
30 lines
1.5 KiB
Plaintext
Executable File
#! /bin/sh /usr/share/dpatch/dpatch-run
|
||
## 001-Drop_obsolete_asm_user.h.dpatch
|
||
## by wschlich (Gentoo)
|
||
##
|
||
## DP: Stolen on Gentoo VCS, thanks a lot Gentoo guys :)
|
||
## DP: http://sources.gentoo.org:80/viewcvs.py/gentoo-x86/sys-block/megactl/files/
|
||
|
||
@DPATCH@
|
||
diff -urN megactl-0.4.1.orig/src/megatrace.c megactl-0.4.1/src/megatrace.c
|
||
--- megactl-0.4.1.orig/src/megatrace.c 2007-08-21 09:19:53.000000000 +0200
|
||
+++ megactl-0.4.1/src/megatrace.c 2008-02-10 21:27:24.416919438 +0100
|
||
@@ -49,7 +49,7 @@
|
||
#include <signal.h>
|
||
#include <sys/ptrace.h>
|
||
#include <sys/wait.h>
|
||
-#include <asm/user.h>
|
||
+#include <sys/user.h>
|
||
#include <sys/syscall.h>
|
||
#include <sys/ioctl.h>
|
||
#include <sys/time.h>
|
||
@@ -250,7 +250,7 @@
|
||
len = sizeof buf;
|
||
|
||
if (printregs)
|
||
- fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx ds=%04x __ds=%04x es=%04x __es=%04x fs=%04x __fs=%04x gs=%04x __gs=%04x orig_eax=%08lx eip=%08lx cs=%04x __cs=%04x eflags=%08lx esp=%08lx ss=%04x __ss=%04x\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.ds, r.__ds, r.es, r.__es, r.fs, r.__fs, r.gs, r.__gs, r.orig_eax, r.eip, r.cs, r.__cs, r.eflags, r.esp, r.ss, r.__ss);
|
||
+ fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx xds=%08lx xes=%08lx xfs=%08lx xgs=%08lx orig_eax=%08lx eip=%08lx xcs=%08lx eflags=%08lx esp=%08lx xss=%08lx\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.xds, r.xes, r.xfs, r.xgs, r.orig_eax, r.eip, r.xcs, r.eflags, r.esp, r.xss);
|
||
|
||
copyout (buf, len, pid, r.edx);
|
||
|