Re: [GD-Linux] signals and exceptions
Brought to you by:
vexxed72
From: D. S. <st...@id...> - 2001-11-15 00:48:12
|
Daniel Vogel wrote: > > > A core dump will accomplish this as well, but has problems when there > > are no debug symbols (stripped end user code), or when multiple threads > > are in use and you need to distinguish threads. You might be interested > > in your signal handler running ptrace within your signal handler if you > > want customization. > > Thanks for the pointer. I'll keep it in mind though at the moment I'll stick > with our setjmp/longjmp solution for debugging as it outputs much more data > than a normal backtrace provides. Still annoying that exceptions and signals > don't work together - especially since this is so elegantly done on Windows. They could be made to work together, but then you'd really have to worry about whether you did it right, and the system of making various parts "atomic" would lead to a lot of overhead you already don't want. The thing is that the underlying libc of linux and all UNIX is old C-based, and did not have the concept of exceptions built in to it. It makes the system itself rather stable and low overhead (had linux been C++ based, bootup support would be massive in comparison with what it is now), but isn't very friendly to exceptions. D. Stimits, st...@id... > > - Daniel Vogel, Programmer, Epic Games Inc. > > _______________________________________________ > Gamedevlists-linux mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-linux |