openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/dbus/dbus-sysdeps-unix.c
void _dbus_print_backtrace(void)
{
#if defined(HAVE_BACKTRACE) && defined(DBUS_BUILT_R_DYNAMIC)
    void* bt[500];
    int bt_size;
    int i;
    char** syms;

    bt_size = backtrace(bt, 500);

    syms = backtrace_symbols(bt, bt_size);

    i = 0;
    while (i < bt_size)
    {
        /* don't use dbus_warn since it can _dbus_abort() */
        fprintf(stderr, "  %s\n", syms[i]);
        ++i;
    }
    fflush(stderr);

    free(syms);
#elif defined(HAVE_BACKTRACE) && !defined(DBUS_BUILT_R_DYNAMIC)
    fprintf(
        stderr,
        "  D-Bus not built with -rdynamic so unable to print a backtrace\n");
#else
    fprintf(stderr, "  D-Bus not compiled with backtrace support so unable to "
                    "print a backtrace\n");
#endif
}
/**
 * On GNU libc systems, print a crude backtrace to stderr.  On other
 * systems, print "no backtrace support" and block for possible gdb
 * attachment if an appropriate environment variable is set.
 */
On GNU libc systems, print a crude backtrace to stderr.  On other
systems, print "no backtrace support" and block for possible gdb
attachment if an appropriate environment variable is set.
On GNU libc systems print a crude backtrace to stderr . On other systems print " no backtrace support " and block for possible gdb attachment if an appropriate environment variable is set .
void _dbus_print_backtrace(void)
{
#if defined(HAVE_BACKTRACE) && defined(DBUS_BUILT_R_DYNAMIC)
    void* bt[500];
    int bt_size;
    int i;
    char** syms;
    bt_size = backtrace(bt, 500);
    syms = backtrace_symbols(bt, bt_size);
    i = 0;
    while (i < bt_size)
    {
        fprintf(stderr, "  %s\n", syms[i]);
        ++i;
    }
    fflush(stderr);
    free(syms);
#elif defined(HAVE_BACKTRACE) && !defined(DBUS_BUILT_R_DYNAMIC)
    fprintf(
        stderr,
        "  D-Bus not built with -rdynamic so unable to print a backtrace\n");
#else
    fprintf(stderr, "  D-Bus not compiled with backtrace support so unable to "
                    "print a backtrace\n");
#endif
}
void _dbus_print_backtrace ( void ) { #if defined ( HAVE_BACKTRACE ) && defined ( DBUS_BUILT_R_DYNAMIC ) void * bt [ 500 ] ; int bt_size ; int i ; char * * syms ; bt_size = backtrace ( bt , 500 ) ; syms = backtrace_symbols ( bt , bt_size ) ; i = 0 ; while ( i < bt_size ) { fprintf ( stderr , " \n " , syms [ i ] ) ; ++ i ; } fflush ( stderr ) ; free ( syms ) ; #elif defined ( HAVE_BACKTRACE ) && ! defined ( DBUS_BUILT_R_DYNAMIC ) fprintf ( stderr , " \n " ) ; #else fprintf ( stderr , " " " \n " ) ; #endif }
On GNU libc systems, print a crude backtrace to stderr.
On GNU libc systems print a crude backtrace to stderr .
/* don't use dbus_warn since it can _dbus_abort() */