Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
e68398dc
Commit
e68398dc
authored
May 31, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for HAVE_BACKTRACE and HAVE_EXECINFO_H.
parent
4af9b511
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
configure.ac
configure.ac
+4
-0
src/misc/objects.c
src/misc/objects.c
+2
-2
src/misc/threads.c
src/misc/threads.c
+2
-2
No files found.
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
defined(__GLIBC__) || defined(__APPLE__
)
# if
def (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
defined(__GLIBC__) || defined(__APPLE__)
#if
def 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
defined(__GLIBC__) || defined(__APPLE__)
#if
def HAVE_BACKTRACE
void
*
stack
[
20
];
int
len
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
len
,
2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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