diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 2db3379a264..f047c255c69 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7770,10 +7770,18 @@ x_error_handler (display, error) | |||
| 7770 | It kills all frames on the display that we got the error for. | 7770 | It kills all frames on the display that we got the error for. |
| 7771 | If that was the only one, it prints an error message and kills Emacs. */ | 7771 | If that was the only one, it prints an error message and kills Emacs. */ |
| 7772 | 7772 | ||
| 7773 | /* It is after x_error_handler so that it won't get inlined in | 7773 | /* .gdbinit puts a breakpoint here, so make sure it is not inlined. */ |
| 7774 | x_error_handler. */ | ||
| 7775 | 7774 | ||
| 7776 | static void | 7775 | #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */ |
| 7776 | #define NO_INLINE __attribute__((noinline)) | ||
| 7777 | #else | ||
| 7778 | #define NO_INLINE | ||
| 7779 | #endif | ||
| 7780 | |||
| 7781 | /* On older GCC versions, just putting x_error_quitter | ||
| 7782 | after x_error_handler prevents inlining into the former. */ | ||
| 7783 | |||
| 7784 | static void NO_INLINE | ||
| 7777 | x_error_quitter (display, error) | 7785 | x_error_quitter (display, error) |
| 7778 | Display *display; | 7786 | Display *display; |
| 7779 | XErrorEvent *error; | 7787 | XErrorEvent *error; |