Changeset 21824 for branches/gcc-kmk/include
- Timestamp:
- Nov 25, 2011, 10:19:52 PM (14 years ago)
- Location:
- branches/gcc-kmk/include
- Files:
-
- 3 edited
-
dbglog.h (modified) (2 diffs)
-
heapshared.h (modified) (1 diff)
-
odinwrap.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/include/dbglog.h
r21717 r21824 99 99 100 100 /* enable support for the _interrupt() statement */ 101 #if (defined(__IBMCPP__) || defined(__IBMC__)) 101 #if defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) 102 103 #ifndef __GNUC__ 102 104 # include <builtin.h> 105 #endif 106 103 107 #ifdef DEBUG 108 104 109 #ifdef __cplusplus 105 110 106 #define DebugInt3() BreakPoint(__FILE__, __FUNCTION__, __LINE__) 111 #ifdef PRIVATE_LOGGING 112 #define DebugInt3() do { \ 113 dprintf((LOG, "BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 114 _interrupt(3); \ 115 } while (0) 116 #else 117 #define DebugInt3() do { \ 118 dprintf(("BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 119 _interrupt(3); \ 120 } while (0) 121 #endif 107 122 108 void inline BreakPoint(const char *szFile, const char *szFunction, int iLine) 109 { 110 dprintf(("BREAKPOINT %s %s %d", szFile, szFunction, iLine)); 111 _interrupt(3); 112 } 113 114 #else 123 #else /* __cplusplus */ 115 124 #define DebugInt3() _interrupt(3) 116 125 #endif 117 #else 126 127 #else /* DEBUG */ 118 128 #define DebugInt3() 119 129 #endif 120 130 121 #else 131 #else /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 132 122 133 #ifdef DEBUG 123 134 #define DebugInt3() _asm int 3; … … 126 137 #endif 127 138 128 #endif 139 #endif /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 129 140 130 141 #ifdef __cplusplus -
branches/gcc-kmk/include/heapshared.h
r21301 r21824 18 18 19 19 #ifdef DEBUG 20 void * _System _debug_smalloc(int size, c har *pszFile, int linenr);21 void * _System _debug_smallocfill(int size, int filler, c har *pszFile, int linenr);22 void _System _debug_sfree(void *chunk, c har *pszFile, int linenr);20 void * _System _debug_smalloc(int size, const char *pszFile, int linenr); 21 void * _System _debug_smallocfill(int size, int filler, const char *pszFile, int linenr); 22 void _System _debug_sfree(void *chunk, const char *pszFile, int linenr); 23 23 24 24 #define _smalloc(a) _debug_smalloc((a),__FILE__,__LINE__) -
branches/gcc-kmk/include/odinwrap.h
r21790 r21824 37 37 38 38 #ifdef DEBUG 39 # define ODINDEBUGCHANNEL(a) static c har* pszOdinDebugChannel=#a;40 # define ODINDEBUGCHANNEL1(a) static c har* pszOdinDebugChannel1=#a;39 # define ODINDEBUGCHANNEL(a) static const char *pszOdinDebugChannel = #a; 40 # define ODINDEBUGCHANNEL1(a) static const char *pszOdinDebugChannel1 = #a; 41 41 #else 42 42 # define ODINDEBUGCHANNEL(a) … … 61 61 #include <odin.h> 62 62 63 //#ifdef __cplusplus63 #ifdef __cplusplus 64 64 extern "C" { 65 //#endif65 #endif 66 66 67 67 // --------------------------------------------------------------------------- … … 75 75 extern void WIN32API dbg_IncThreadCallDepth(void); // kernel32 76 76 extern void WIN32API dbg_DecThreadCallDepth(void); // kernel32 77 extern void WIN32API dbg_ThreadPushCall(c har *pszCaller);77 extern void WIN32API dbg_ThreadPushCall(const char *pszCaller); 78 78 extern void WIN32API dbg_ThreadPopCall(); 79 79 extern char* WIN32API dbg_GetLastCallerName(); 80 80 81 //#ifdef __cplusplus81 #ifdef __cplusplus 82 82 } // extern "C" 83 //#endif83 #endif 84 84 85 85 // ---------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.
