netcdf-c/libhdf5/hdf5debug.c
Dennis Heimbigner adea80f376 Remove the execinfo capability
re: Issue https://github.com/Unidata/netcdf-c/issues/2766

This attempt to programmatically dump stack never worked,
so it is time to kill it off.
2023-11-04 21:32:33 -06:00

32 lines
671 B
C

/*********************************************************************
* Copyright 2018, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
*********************************************************************/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
#include "nclog.h"
#include "hdf5debug.h"
#ifdef H5CATCH
int
nch5breakpoint(int err)
{
return ncbreakpoint(err);
}
int
nch5throw(int err, int line)
{
if(err == 0) return err;
fprintf(stderr,">>> hdf5throw: line=%d err=%d\n",line,err); fflush(stderr);
return nch5breakpoint(err);
}
#endif