Mercurial > hg > xemacs-beta
annotate src/s/hpux11-shr.h @ 4880:ae81a2c00f4f
try harder to avoid crashing when debug-printing
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-01-18 Ben Wing <ben@xemacs.org>
* lisp.h:
* print.c:
New variable `in_debug_print'.
* alloc.c:
* alloc.c (free_managed_lcrecord):
If gc_in_progress and in_debug_print, just return instead of
crashing. This only happens when the programmer calls debug_print()
or a variation inside of a debugger, and is probably already
diagnosing a crash.
* print.c (struct debug_bindings):
* print.c (debug_prin1_exit):
* print.c (debug_prin1):
At entrance, record the old value of in_debug_print in the
debug_bindings, set up an unwind-protect to restore the old value,
and set in_debug_print to 1. In the unwind-protect, restore the
old value.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 18 Jan 2010 06:05:21 -0600 |
parents | aa5ed11f473b |
children | cad59a0a3b19 |
rev | line source |
---|---|
269 | 1 /* Synched up with: FSF 19.31. */ |
2 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
269
diff
changeset
|
3 /* For building XEmacs under HPUX 11.0 with dynamic libraries. */ |
269 | 4 |
5 #define ORDINARY_LINK | |
6 | |
7 /* XEmacs change */ | |
8 #define HPUX_USE_SHLIBS | |
9 | |
10 /* XEmacs: */ | |
11 /* Don't tell the linker to link statically */ | |
12 #ifdef NOT_C_CODE | |
13 #define START_FILES | |
14 #define LINKER "$(CC)" | |
15 #endif /* THIS IS YMAKEFILE */ | |
16 | |
17 /* get call to brk() when rerunning XEmacs */ | |
18 #define RUN_TIME_REMAP | |
19 | |
20 #include "hpux11.h" | |
21 | |
22 /* We must turn off -g since it forces -static. */ | |
23 #ifdef __GNUC__ | |
24 #undef C_DEBUG_SWITCH | |
25 #define C_DEBUG_SWITCH | |
26 #endif |