summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-06-22 18:03:36 -0400
committerColin Walters <walters@verbum.org>2010-06-22 18:03:36 -0400
commit3599c3727d87cb52728a47c31c50484769022745 (patch)
treed8f340daec940d294d95c5e610a7d1d3abaf24a8 /girepository/girparser.c
parentc0dc1b20bd7f40dcb6f44f6dae45e7d316b5fa9d (diff)
downloadgobject-introspection-3599c3727d87cb52728a47c31c50484769022745.tar.gz
[girparser] Remove backtrace()
It's not useful; we never got good info from it, and modern operating systems ship with crash catching systems.
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 1badfd7e..2713bb46 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -35,10 +35,6 @@
*/
#define SUPPORTED_GIR_VERSION "1.1"
-#if defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS)
-# include <execinfo.h>
-#endif
-
struct _GIrParser
{
gchar **includes;
@@ -282,29 +278,6 @@ locate_gir (GIrParser *parser,
line_number, char_number, attribute, element); \
} while (0)
-static void
-backtrace_stderr (void)
-{
-#if defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS)
- void *array[50];
- int size, i;
- char **strings;
-
- size = backtrace (array, 50);
- strings = (char**) backtrace_symbols (array, size);
-
- fprintf (stderr, "--- BACKTRACE (%d frames) ---\n", size);
-
- for (i = 0; i < size; i++)
- fprintf (stderr, "%s\n", strings[i]);
-
- fprintf (stderr, "--- END BACKTRACE ---\n");
-
- free (strings);
-#endif
-}
-
-
static const gchar *
find_attribute (const gchar *name,
const gchar **attribute_names,
@@ -2857,7 +2830,6 @@ start_element_handler (GMarkupParseContext *context,
g_markup_parse_context_get_position (context, &line_number, &char_number);
g_printerr ("%s:%d:%d: error: %s\n", ctx->file_path, line_number, char_number, (*error)->message);
- backtrace_stderr ();
}
}
@@ -2896,7 +2868,6 @@ require_one_of_end_elements (GMarkupParseContext *context,
"Unexpected end tag '%s' on line %d char %d; current state=%d",
actual_name,
line_number, char_number, ctx->state);
- backtrace_stderr();
return FALSE;
}