Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
e68398dc
Commit
e68398dc
authored
May 31, 2008
by
Pierre d'Herbemont
Browse files
configure: Check for HAVE_BACKTRACE and HAVE_EXECINFO_H.
parent
4af9b511
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
e68398dc
...
...
@@ -1137,6 +1137,10 @@ case "${host_cpu}" in
;;
esac
dnl Check for backtrace() support
AC_CHECK_HEADERS(execinfo.h)
AC_CHECK_FUNCS(backtrace)
dnl
dnl Enable profiling
dnl
...
...
src/misc/objects.c
View file @
e68398dc
...
...
@@ -1482,7 +1482,7 @@ static void ListChildren( vlc_list_t *p_list, vlc_object_t *p_this, int i_type )
}
#ifndef NDEBUG
# if
def
ined(__GLIBC__) || defined(__APPLE__
)
# ifdef
(HAVE_EXECINFO_H
)
# include <execinfo.h>
# endif
...
...
@@ -1541,7 +1541,7 @@ void vlc_refcheck (vlc_object_t *obj)
obj
->
psz_object_type
);
fflush
(
stderr
);
#if
def
ined(__GLIBC__) || defined(__APPLE__)
#ifdef
HAVE_BACKTRACE
void
*
stack
[
20
];
int
stackdepth
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
stackdepth
,
2
);
...
...
src/misc/threads.c
View file @
e68398dc
...
...
@@ -83,7 +83,7 @@ static inline unsigned long vlc_threadid (void)
return
v
.
i
;
}
#if
defined(__GLIBC__) || defined(__APPLE__)
#if
HAVE_EXECINFO_H
# include <execinfo.h>
#endif
...
...
@@ -125,7 +125,7 @@ void vlc_pthread_fatal (const char *action, int error,
fflush
(
stderr
);
#endif
#if
def
ined(__GLIBC__) || defined(__APPLE__)
#ifdef
HAVE_BACKTRACE
void
*
stack
[
20
];
int
len
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
len
,
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment