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
84207844
Commit
84207844
authored
May 30, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlccore: Also print a backtrace on Mac OS X.
Note: We may want to check that at configure time.
parent
3a2e925e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/misc/objects.c
src/misc/objects.c
+2
-2
src/misc/threads.c
src/misc/threads.c
+7
-5
No files found.
src/misc/objects.c
View file @
84207844
...
@@ -1488,7 +1488,7 @@ static void ListChildren( vlc_list_t *p_list, vlc_object_t *p_this, int i_type )
...
@@ -1488,7 +1488,7 @@ static void ListChildren( vlc_list_t *p_list, vlc_object_t *p_this, int i_type )
}
}
#ifndef NDEBUG
#ifndef NDEBUG
# if
def __GLIBC__
# if
defined(__GLIBC__) || defined(__APPLE__)
# include <execinfo.h>
# include <execinfo.h>
# endif
# endif
...
@@ -1547,7 +1547,7 @@ void vlc_refcheck (vlc_object_t *obj)
...
@@ -1547,7 +1547,7 @@ void vlc_refcheck (vlc_object_t *obj)
obj
->
psz_object_type
);
obj
->
psz_object_type
);
fflush
(
stderr
);
fflush
(
stderr
);
#if
def __GLIBC__
#if
defined(__GLIBC__) || defined(__APPLE__)
void
*
stack
[
20
];
void
*
stack
[
20
];
int
stackdepth
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
int
stackdepth
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
stackdepth
,
2
);
backtrace_symbols_fd
(
stack
,
stackdepth
,
2
);
...
...
src/misc/threads.c
View file @
84207844
...
@@ -83,7 +83,7 @@ static inline unsigned long vlc_threadid (void)
...
@@ -83,7 +83,7 @@ static inline unsigned long vlc_threadid (void)
return
v
.
i
;
return
v
.
i
;
}
}
#if
def __GLIBC__
#if
defined(__GLIBC__) || defined(__APPLE__)
# include <execinfo.h>
# include <execinfo.h>
#endif
#endif
...
@@ -105,10 +105,6 @@ void vlc_pthread_fatal (const char *action, int error,
...
@@ -105,10 +105,6 @@ void vlc_pthread_fatal (const char *action, int error,
/* Avoid the strerror_r() prototype brain damage in glibc */
/* Avoid the strerror_r() prototype brain damage in glibc */
errno
=
error
;
errno
=
error
;
dprintf
(
2
,
" Error message: %m at:
\n
"
);
dprintf
(
2
,
" Error message: %m at:
\n
"
);
void
*
stack
[
20
];
int
len
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
len
,
2
);
#else
#else
char
buf
[
1000
];
char
buf
[
1000
];
const
char
*
msg
;
const
char
*
msg
;
...
@@ -129,6 +125,12 @@ void vlc_pthread_fatal (const char *action, int error,
...
@@ -129,6 +125,12 @@ void vlc_pthread_fatal (const char *action, int error,
fflush
(
stderr
);
fflush
(
stderr
);
#endif
#endif
#if defined(__GLIBC__) || defined(__APPLE__)
void
*
stack
[
20
];
int
len
=
backtrace
(
stack
,
sizeof
(
stack
)
/
sizeof
(
stack
[
0
]));
backtrace_symbols_fd
(
stack
,
len
,
2
);
#endif
abort
();
abort
();
}
}
#else
#else
...
...
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