Changeset 37233 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 27, 2011 1:31:57 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71955
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r37228 r37233 546 546 r3/win/alloc-win.cpp \ 547 547 r3/win/dir-win.cpp \ 548 r3/win/errvars-win.cpp \ 548 549 r3/win/fileio-win.cpp \ 549 550 r3/win/fs-win.cpp \ … … 611 612 r3/posix/dir-posix.cpp \ 612 613 r3/posix/env-posix.cpp \ 614 r3/posix/errvars-posix.cpp \ 613 615 r3/posix/fileio-posix.cpp \ 614 616 r3/posix/fileio2-posix.cpp \ … … 702 704 r3/posix/dir-posix.cpp \ 703 705 r3/posix/env-posix.cpp \ 706 r3/posix/errvars-posix.cpp \ 704 707 r3/posix/fileio-posix.cpp \ 705 708 r3/posix/fileio2-posix.cpp \ … … 760 763 r3/posix/dir-posix.cpp \ 761 764 r3/posix/env-posix.cpp \ 765 r3/posix/errvars-posix.cpp \ 762 766 r3/posix/fileio-posix.cpp \ 763 767 r3/posix/fileio2-posix.cpp \ … … 818 822 r3/posix/dir-posix.cpp \ 819 823 r3/posix/env-posix.cpp \ 824 r3/posix/errvars-posix.cpp \ 820 825 r3/posix/fileio-posix.cpp \ 821 826 r3/posix/fileio2-posix.cpp \ … … 874 879 r3/posix/dir-posix.cpp \ 875 880 r3/posix/env-posix.cpp \ 881 r3/posix/errvars-posix.cpp \ 876 882 r3/posix/fileio-posix.cpp \ 877 883 r3/posix/fileio2-posix.cpp \ … … 932 938 933 939 RuntimeR3L4_SOURCES = \ 940 generic/errvars-generic.cpp \ 934 941 generic/fs-stubs-generic.cpp \ 935 942 generic/pathhost-generic.cpp \ … … 1134 1141 generic/pathhost-generic.cpp \ 1135 1142 generic/RTAssertShouldPanic-generic.cpp \ 1143 generic/errvars-generic.cpp \ 1136 1144 r3/alloc.cpp \ 1137 1145 r3/alloc-ef.cpp \ … … 1630 1638 generic/RTSemEventMultiWait-2-ex-generic.cpp \ 1631 1639 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \ 1640 generic/errvars-generic.cpp \ 1632 1641 generic/uuid-generic.cpp \ 1633 1642 r0drv/alloc-r0drv.cpp \ … … 1950 1959 gc/initterm-gc.cpp \ 1951 1960 generic/RTAssertShouldPanic-generic.cpp \ 1961 generic/errvars-generic.cpp \ 1952 1962 \ 1953 1963 $(RuntimeNoCrt_SOURCES) -
trunk/src/VBox/Runtime/VBox/RTAssertShouldPanic-vbox.cpp
r33806 r37233 31 31 #include <iprt/assert.h> 32 32 #include <iprt/env.h> 33 #include <iprt/err.h> 33 34 #include <iprt/string.h> 34 35 … … 52 53 53 54 54 RTDECL(bool) RTAssertShouldPanic(void) 55 /** 56 * Worker that we can wrap with error variable saving and restoring. 57 */ 58 static bool rtAssertShouldPanicWorker(void) 55 59 { 56 /*57 * Check if panicing is excluded by the the RTAssert settings first.58 */59 if (!RTAssertMayPanic())60 return false;61 62 60 /* 63 61 * Check for the VBOX_ASSERT variable. … … 143 141 } 144 142 143 144 RTDECL(bool) RTAssertShouldPanic(void) 145 { 146 /* 147 * Check if panicing is excluded by the the RTAssert settings first. 148 */ 149 if (!RTAssertMayPanic()) 150 return false; 151 152 /* 153 * Preserve error state variables. 154 */ 155 RTERRVARS SavedErrVars; 156 RTErrVarsSave(&SavedErrVars); 157 158 bool fRc = rtAssertShouldPanicWorker(); 159 160 RTErrVarsRestore(&SavedErrVars); 161 return fRc; 162 } 163 -
trunk/src/VBox/Runtime/common/misc/assert.cpp
r36827 r37233 33 33 34 34 #include <iprt/asm.h> 35 #include <iprt/err.h> 35 36 #include <iprt/log.h> 36 37 #include <iprt/string.h> … … 122 123 if (!RTAssertAreQuiet()) 123 124 { 125 RTERRVARS SavedErrVars; 126 RTErrVarsSave(&SavedErrVars); 127 124 128 #ifdef IN_RING0 125 129 # ifdef IN_GUEST_R0 … … 182 186 # endif 183 187 #endif /* !IN_RING0 */ 188 189 RTErrVarsRestore(&SavedErrVars); 184 190 } 185 191 } … … 226 232 if (!RTAssertAreQuiet()) 227 233 { 234 RTERRVARS SavedErrVars; 235 RTErrVarsSave(&SavedErrVars); 236 228 237 #ifdef IN_RING0 229 238 # ifdef IN_GUEST_R0 … … 274 283 # endif 275 284 #endif /* !IN_RING0 */ 285 286 RTErrVarsRestore(&SavedErrVars); 276 287 } 277 278 288 } 279 289 -
trunk/src/VBox/Runtime/include/internal/magics.h
r37196 r37233 59 59 /** The value of RTENVINTERNAL::u32Magic. (Rumiko Takahashi) */ 60 60 #define RTENV_MAGIC UINT32_C(0x19571010) 61 /** The value of RTERRVARS::ai32Vars[0]. (Ryuichi Sakamoto) */ 62 #define RTERRVARS_MAGIC UINT32_C(0x19520117) 61 63 /** Magic number for RTHANDLETABLEINT::u32Magic. (Hitomi Kanehara) */ 62 64 #define RTHANDLETABLE_MAGIC UINT32_C(0x19830808)
Note:
See TracChangeset
for help on using the changeset viewer.