mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
tools: point people to right binary when a crash happens
"gst-launch" is the 0.10 wrapper script, using that with gdb is not going to yield great results.
This commit is contained in:
parent
6cc51762f4
commit
5be0a58463
1 changed files with 4 additions and 3 deletions
|
@ -136,14 +136,15 @@ fault_spin (void)
|
||||||
int spinning = TRUE;
|
int spinning = TRUE;
|
||||||
|
|
||||||
glib_on_error_halt = FALSE;
|
glib_on_error_halt = FALSE;
|
||||||
g_on_error_stack_trace ("gst-launch");
|
g_on_error_stack_trace ("gst-launch-" GST_API_VERSION);
|
||||||
|
|
||||||
wait (NULL);
|
wait (NULL);
|
||||||
|
|
||||||
/* FIXME how do we know if we were run by libtool? */
|
/* FIXME how do we know if we were run by libtool? */
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"Spinning. Please run 'gdb gst-launch %d' to continue debugging, "
|
"Spinning. Please run 'gdb gst-launch- " GST_API_VERSION " %d' to "
|
||||||
"Ctrl-C to quit, or Ctrl-\\ to dump core.\n", (gint) getpid ());
|
"continue debugging, Ctrl-C to quit, or Ctrl-\\ to dump core.\n",
|
||||||
|
(gint) getpid ());
|
||||||
while (spinning)
|
while (spinning)
|
||||||
g_usleep (1000000);
|
g_usleep (1000000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue