mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
DebugBreak() still not quite right
This commit is contained in:
parent
397b886289
commit
5f449727e1
@ -434,11 +434,15 @@ assert_failure(const char *expression, int line,
|
|||||||
// the debugger? abort() doesn't do it. We used to be able to
|
// the debugger? abort() doesn't do it. We used to be able to
|
||||||
// assert(false), but in VC++ 7 that just throws an exception, and
|
// assert(false), but in VC++ 7 that just throws an exception, and
|
||||||
// an uncaught exception just exits, without offering to open the
|
// an uncaught exception just exits, without offering to open the
|
||||||
// debugger. Guess we'll have to force a segfault.
|
// debugger.
|
||||||
|
|
||||||
// int *ptr = (int *)NULL;
|
// DebugBreak() seems to be provided for this purpose, but it
|
||||||
// *ptr = 1;
|
// doesn't seem to work properly either, since we don't seem to
|
||||||
DebugBreak();
|
// get a reliable stack trace.
|
||||||
|
|
||||||
|
// Guess we'll still have to force a segfault.
|
||||||
|
int *ptr = (int *)NULL;
|
||||||
|
*ptr = 1;
|
||||||
#else
|
#else
|
||||||
abort();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user