Changeset c7f9ce in git


Ignore:
Timestamp:
Dec 9, 2013, 2:00:31 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5bec8f88c9ee2573d328cf7c3aff2bcb301d2395')
Children:
405407bdac5cfb8bd6b630f594181854f05956c3
Parents:
317d81f2061cf0a971fba9cf04b2d55b0e9ce90a
Message:
fix: omalloc tests and gcc 4.8: backtrace requires -g
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omRet2Info.c

    r317d81f rc7f9ce  
    200200int _omPrintBackTrace(void** bt, int max, FILE* fd , OM_FLR_DECL)
    201201{
     202#ifndef __OPTIMIZE__
    202203  int i = 0;
    203204
     
    262263    return omPrintRetInfo(info, i, fd, "\n  #%i at %L in %N");
    263264#endif
     265#else
     266  return 0;
     267#endif
    264268}
    265269
    266270int _omPrintCurrentBackTrace(FILE* fd , OM_FLR_DECL)
    267271{
     272#ifdef __OPTIMIZE__
     273  /* does not work without -g */
     274  return 0;
     275#else
    268276  int i;
    269277  void* bt[OM_MAX_BACKTRACE_DEPTH];
     
    271279  i = omGetBackTrace(bt, 1, OM_MAX_BACKTRACE_DEPTH);
    272280  return _omPrintBackTrace(bt, i, fd , OM_FLR_VAL);
     281#endif
    273282}
    274283#endif /* ! OM_NDEBUG */
Note: See TracChangeset for help on using the changeset viewer.