1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Update to 1.1.

This commit is contained in:
Maxim Sobolev 2004-07-19 05:42:23 +00:00
parent 6fdba7c09c
commit 65fd5b616d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113939
5 changed files with 4 additions and 59 deletions

View File

@ -6,10 +6,9 @@
#
PORTNAME= libexecinfo
PORTVERSION= 1.0
PORTREVISION= 2
PORTVERSION= 1.1
CATEGORIES= devel
MASTER_SITES= https://demo.portaone.com/~sobomax/freestuff/
MASTER_SITES= http://www.portaone.com/~sobomax/
MAINTAINER= ports@FreeBSD.org
COMMENT= A library for inspecting program's backtrace

View File

@ -1,2 +1,2 @@
MD5 (libexecinfo-1.0.tar.bz2) = 745579b7705227c5c79cd7af391a005b
SIZE (libexecinfo-1.0.tar.bz2) = 4242
MD5 (libexecinfo-1.1.tar.bz2) = 8e9e81c554c1c5d735bc877448e92b91
SIZE (libexecinfo-1.1.tar.bz2) = 4841

View File

@ -1,14 +0,0 @@
$FreeBSD$
--- Makefile 2003/08/10 05:00:23 1.1
+++ Makefile 2003/08/10 05:00:34
@@ -28,6 +28,8 @@
SRCS= stacktraverse.c stacktraverse.h execinfo.c execinfo.h
+INCS= execinfo.h
+
SHLIB_MAJOR= 1
SHLIB_MINOR= 0

View File

@ -1,18 +0,0 @@
$FreeBSD$
--- execinfo.c 2003/08/10 06:14:30 1.1
+++ execinfo.c 2003/08/10 06:15:23
@@ -41,8 +41,11 @@
{
int i;
- for (i = 1; getframeaddr(i + 1) != NULL && i != size + 1; i++)
+ for (i = 1; getframeaddr(i + 1) != NULL && i != size + 1; i++) {
buffer[i - 1] = getreturnaddr(i);
+ if (buffer[i - 1] == NULL)
+ break;
+ }
return i - 1;
}

View File

@ -1,22 +0,0 @@
$FreeBSD$
--- execinfo.h 2003/08/10 05:43:54 1.1
+++ execinfo.h 2003/08/10 05:44:11
@@ -29,8 +29,16 @@
#ifndef _EXECINFO_H_
#define _EXECINFO_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int backtrace(void **, int);
char ** backtrace_symbols(void *const *, int);
void backtrace_symbols_fd(void *const *, int, int);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* _EXECINFO_H_ */