diff options
author | tnn <tnn@pkgsrc.org> | 2016-03-14 23:42:47 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2016-03-14 23:42:47 +0000 |
commit | 810b58cb17860bc741a0e947c2f0d7050f85fbf2 (patch) | |
tree | 201f9669bc1c61866977136eeb7de11ae4ac7fce /devel | |
parent | 8e2c7189a7e0ba85f980d64f97f8b2abb87fc6c0 (diff) | |
download | pkgsrc-810b58cb17860bc741a0e947c2f0d7050f85fbf2.tar.gz |
fix struct reg usage according to /usr/include/i386/reg.h
Diffstat (limited to 'devel')
-rw-r--r-- | devel/deforaos-coder/distinfo | 3 | ||||
-rw-r--r-- | devel/deforaos-coder/patches/patch-tools_debug_ptrace.c | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/devel/deforaos-coder/distinfo b/devel/deforaos-coder/distinfo index 1eadbf2e95c..2703877f940 100644 --- a/devel/deforaos-coder/distinfo +++ b/devel/deforaos-coder/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2016/02/20 03:20:23 khorben Exp $ +$NetBSD: distinfo,v 1.8 2016/03/14 23:42:47 tnn Exp $ SHA1 (Coder-0.2.0.tar.gz) = a72127e0270fe8e1111a0e557cf6ddd8e59bc71a RMD160 (Coder-0.2.0.tar.gz) = 585f330d34550dff955577029fd3f59cc2cdd081 SHA512 (Coder-0.2.0.tar.gz) = 0bf80496c3a5c1376852a69d5a242a84193576d804be76223974368c81b460f1a80406fd8dacf28ca6ad0d374663643ad2c6245d5051e75050f2f89728ad6104 Size (Coder-0.2.0.tar.gz) = 130157 bytes +SHA1 (patch-tools_debug_ptrace.c) = 4e96b4b64373d4d95187d6497241070b065f86b0 diff --git a/devel/deforaos-coder/patches/patch-tools_debug_ptrace.c b/devel/deforaos-coder/patches/patch-tools_debug_ptrace.c new file mode 100644 index 00000000000..9ae1db25bc7 --- /dev/null +++ b/devel/deforaos-coder/patches/patch-tools_debug_ptrace.c @@ -0,0 +1,31 @@ +$NetBSD: patch-tools_debug_ptrace.c,v 1.1 2016/03/14 23:42:47 tnn Exp $ + +fix struct reg usage according to /usr/include/i386/reg.h + +--- tools/debug/ptrace.c.orig 2016-02-20 01:27:00.000000000 +0000 ++++ tools/debug/ptrace.c +@@ -329,15 +329,15 @@ static void _ptrace_get_registers(Ptrace + helper->set_register(helper->debugger, "rbp", regs.regs[_REG_RBP]); + helper->set_register(helper->debugger, "rip", regs.regs[_REG_RIP]); + # elif defined(__i386__) +- helper->set_register(helper->debugger, "eax", regs.regs[_REG_EAX]); +- helper->set_register(helper->debugger, "ecx", regs.regs[_REG_ECX]); +- helper->set_register(helper->debugger, "edx", regs.regs[_REG_EDX]); +- helper->set_register(helper->debugger, "ebx", regs.regs[_REG_EBX]); +- helper->set_register(helper->debugger, "esi", regs.regs[_REG_ESI]); +- helper->set_register(helper->debugger, "edi", regs.regs[_REG_EDI]); +- helper->set_register(helper->debugger, "esp", regs.regs[_REG_ESP]); +- helper->set_register(helper->debugger, "ebp", regs.regs[_REG_EBP]); +- helper->set_register(helper->debugger, "eip", regs.regs[_REG_EIP]); ++ helper->set_register(helper->debugger, "eax", regs.r_eax); ++ helper->set_register(helper->debugger, "ecx", regs.r_ecx); ++ helper->set_register(helper->debugger, "edx", regs.r_edx); ++ helper->set_register(helper->debugger, "ebx", regs.r_ebx); ++ helper->set_register(helper->debugger, "esi", regs.r_esi); ++ helper->set_register(helper->debugger, "edi", regs.r_edi); ++ helper->set_register(helper->debugger, "esp", regs.r_esp); ++ helper->set_register(helper->debugger, "ebp", regs.r_ebp); ++ helper->set_register(helper->debugger, "eip", regs.r_eip); + # endif + #endif + } |