~brianaker/drizzle/798940

« back to all changes in this revision

Viewing changes to drizzled/util/backtrace.cc

  • Committer: Brian Aker
  • Date: 2011-07-14 22:12:02 UTC
  • Revision ID: brian@tangent.org-20110714221202-9ov19jp0tmhiovqk
Fixes bug where true/false would not be interpreted correctly/displayed correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
 
22
21
#include <config.h>
23
22
#include <drizzled/util/backtrace.h>
24
23
 
33
32
#endif // HAVE_BACKTRACE
34
33
#endif // __GNUC__
35
34
 
36
 
 
37
35
namespace drizzled
38
36
{
39
37
namespace util
40
38
{
41
39
 
42
 
void custom_backtrace(void)
 
40
void custom_backtrace(const char *file, int line, const char *func)
43
41
{
 
42
  std::cerr << std::endl << "call_backtrace() began at " << file << ":" << line << " for " << func << "()" << std::endl;
44
43
#ifdef __GNUC__
45
44
#ifdef HAVE_BACKTRACE
46
45
  void *array[50];