Mercurial > ecos
comparison packages/language/cxx/ustl/current/src/bktrace.cpp @ 2910:9e1cb7863bef
* src/bktrace.cpp: prevent inclusion of host header <execinfo.h> (eCos builds
for Linux synthetic target).
* src/uexception.cpp:exception::read(): initialise local variable stmSize.
| author | jld |
|---|---|
| date | Mon, 24 Aug 2009 06:46:33 +0000 |
| parents | 88af52c64ce4 |
| children | 4885e0722884 |
comparison
equal
deleted
inserted
replaced
| 2909:3e777a018dc7 | 2910:9e1cb7863bef |
|---|---|
| 4 // This file is free software, distributed under the MIT License. | 4 // This file is free software, distributed under the MIT License. |
| 5 | 5 |
| 6 #include "bktrace.h" | 6 #include "bktrace.h" |
| 7 #include "sostream.h" | 7 #include "sostream.h" |
| 8 #include "mistream.h" | 8 #include "mistream.h" |
| 9 #if linux && __GNUC__ | 9 #if 0 // linux && __GNUC__ |
| 10 #include <execinfo.h> | 10 #include <execinfo.h> |
| 11 #else | 11 #else |
| 12 static inline int backtrace (void**, int) { return (0); } | 12 static inline int backtrace (void**, int) { return (0); } |
| 13 static inline char** backtrace_symbols (void* const*, int) { return (NULL); } | 13 static inline char** backtrace_symbols (void* const*, int) { return (NULL); } |
| 14 #endif | 14 #endif |
