OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
3.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dltrace/dltrace-0.5-deprecated-asm-headers.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- dltrace-0.5/lib/libplump/include/plumpconfig.h.orig 2011-04-29 11:16:48.700000255 +0200
  17. +++ dltrace-0.5/lib/libplump/include/plumpconfig.h 2011-04-29 11:17:56.572000254 +0200
  18. @@ -19,7 +19,7 @@
  19. #define REGISTER_STRUCT_TYPE_REG 0x0002
  20. #if defined(OS_LINUX)
  21. - #include <asm/user.h> // struct user_regs_struct
  22. + #include <sys/user.h> // struct user_regs_struct
  23. extern int ptrace (int request, int pid, ...);
  24. #elif defined(OS_FREEBSD) // struct reg
  25. --- dltrace-0.5/lib/libplump/src/core/registers.c.orig 2011-04-29 11:09:08.380000254 +0200
  26. +++ dltrace-0.5/lib/libplump/src/core/registers.c 2011-04-29 11:09:59.008000254 +0200
  27. @@ -99,17 +99,17 @@
  28. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_ESI))
  29. offset = &((struct user_regs_struct *)reg)->esi;
  30. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_SS))
  31. - offset = &((struct user_regs_struct *)reg)->ss;
  32. + offset = &((struct user_regs_struct *)reg)->xss;
  33. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_CS))
  34. - offset = &((struct user_regs_struct *)reg)->cs;
  35. + offset = &((struct user_regs_struct *)reg)->xcs;
  36. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_DS))
  37. - offset = &((struct user_regs_struct *)reg)->ds;
  38. + offset = &((struct user_regs_struct *)reg)->xds;
  39. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_ES))
  40. - offset = &((struct user_regs_struct *)reg)->es;
  41. + offset = &((struct user_regs_struct *)reg)->xes;
  42. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_FS))
  43. - offset = &((struct user_regs_struct *)reg)->fs;
  44. + offset = &((struct user_regs_struct *)reg)->xfs;
  45. else if (REGISTER_NAME(want[x].name) == REGISTER_NAME(REGISTER_IA32_GS))
  46. - offset = &((struct user_regs_struct *)reg)->gs;
  47. + offset = &((struct user_regs_struct *)reg)->xgs;
  48. break;
  49. #elif defined(OS_FREEBSD)
  50. case REGISTER_STRUCT_TYPE_REG:
  51. --- dltrace-0.5/include/dltrace.h.orig 2011-04-29 11:15:17.348000255 +0200
  52. +++ dltrace-0.5/include/dltrace.h 2011-04-29 11:15:57.048000255 +0200
  53. @@ -22,7 +22,7 @@
  54. #include <string.h>
  55. #include <unistd.h>
  56. #include <signal.h>
  57. -#include <asm/page.h>
  58. +#include <sys/user.h> /* PAGE_SIZE */
  59. // asm/page.h -- linux
  60. // i386/vmparam.h -- nbsd
  61. // i386/param.h -- obsd