View | Details | Raw Unified | Return to bug 257350
Collapse All | Expand All

(-)b/devel/delve/Makefile (-1 / +1 lines)
Lines 1-6 Link Here
1
PORTNAME=	delve
1
PORTNAME=	delve
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.6.1
3
DISTVERSION=	1.7.0
4
CATEGORIES=	devel
4
CATEGORIES=	devel
5
5
6
MAINTAINER=	dmitry.wagin@ya.ru
6
MAINTAINER=	dmitry.wagin@ya.ru
(-)b/devel/delve/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1622023017
1
TIMESTAMP = 1626778105
2
SHA256 (go-delve-delve-v1.6.1_GH0.tar.gz) = e73f7fc063632268d3bdf53486aeafd98cceb8f86f4af56903dedfebaefe690d
2
SHA256 (go-delve-delve-v1.7.0_GH0.tar.gz) = 0504f7ea8d63a8f6eccac9f7071f9ac45f8123151ce53aedbf539f83808d122b
3
SIZE (go-delve-delve-v1.6.1_GH0.tar.gz) = 7686466
3
SIZE (go-delve-delve-v1.7.0_GH0.tar.gz) = 7716801
(-)a/devel/delve/files/patch-pkg_proc_native_proc__freebsd.c (-52 lines)
Removed Link Here
1
--- pkg/proc/native/proc_freebsd.c.orig	2021-05-19 07:24:05 UTC
2
+++ pkg/proc/native/proc_freebsd.c
3
@@ -3,11 +3,13 @@
4
 #include <sys/queue.h>
5
 #include <sys/sysctl.h>
6
 #include <sys/user.h>
7
+#include <sys/types.h>
8
 
9
 #include <libprocstat.h>
10
 #include <libutil.h>
11
 #include <stdlib.h>
12
 #include <string.h>
13
+#include <errno.h>
14
 
15
 #include "proc_freebsd.h"
16
 
17
@@ -66,21 +68,23 @@ int find_status(int pid){
18
 	return (status);
19
 }
20
 
21
-int get_entry_point(int pid) {
22
+uintptr_t get_entry_point(int pid) {
23
     void *ep = NULL;
24
 
25
+    errno = EINVAL;
26
+
27
     struct procstat *ps = procstat_open_sysctl();
28
     if (ps == NULL)
29
-        return -1;
30
+        return 0;
31
 
32
     uint cnt = 0;
33
     struct kinfo_proc *kipp = procstat_getprocs(ps, KERN_PROC_PID, pid, &cnt);
34
     if (cnt == 0)
35
-        return -1;
36
+        return 0;
37
 
38
     Elf_Auxinfo *auxv = procstat_getauxv(ps, kipp, &cnt);
39
     if (auxv == NULL)
40
-        return -1;
41
+        return 0;
42
 
43
     for (int i = 0; i < cnt; i++) {
44
         if (auxv[i].a_type == AT_ENTRY) {
45
@@ -89,5 +93,6 @@ int get_entry_point(int pid) {
46
         }
47
     }
48
     procstat_freeauxv(ps, auxv);
49
-    return (int)ep;
50
+    errno = 0;
51
+    return (uintptr_t)ep;
52
 }
(-)a/devel/delve/files/patch-pkg_proc_native_proc__freebsd.h (-10 lines)
Removed Link Here
1
--- pkg/proc/native/proc_freebsd.h.orig	2021-05-19 07:24:05 UTC
2
+++ pkg/proc/native/proc_freebsd.h
3
@@ -1,4 +1,6 @@
4
+#include <sys/types.h>
5
+
6
 char * find_command_name(int pid);
7
 char * find_executable(int pid);
8
 int find_status(int pid);
9
-int get_entry_point(int pid);
10
+uintptr_t get_entry_point(int pid);

Return to bug 257350