* callback.h (struct host_callback_struct): Mark member error as
pointing to a noreturn function.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2009-01-07  Hans-Peter Nilsson  <hp@axis.com> | ||||||
|  |  | ||||||
|  | 	* callback.h (struct host_callback_struct): Mark member error as | ||||||
|  | 	pointing to a noreturn function. | ||||||
|  |  | ||||||
| 2008-02-12  M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com> | 2008-02-12  M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com> | ||||||
|  |  | ||||||
| 	* sim-cr16.h: New file. | 	* sim-cr16.h: New file. | ||||||
|   | |||||||
| @@ -124,7 +124,11 @@ struct host_callback_struct | |||||||
|   /* Print an error message and "exit". |   /* Print an error message and "exit". | ||||||
|      In the case of gdb "exiting" means doing a longjmp back to the main |      In the case of gdb "exiting" means doing a longjmp back to the main | ||||||
|      command loop.  */ |      command loop.  */ | ||||||
|   void (*error) PARAMS ((host_callback *, const char *, ...)); |   void (*error) PARAMS ((host_callback *, const char *, ...)) | ||||||
|  | #ifdef __GNUC__ | ||||||
|  |     __attribute__ ((__noreturn__)) | ||||||
|  | #endif | ||||||
|  |     ; | ||||||
|  |  | ||||||
|   int last_errno;		/* host format */ |   int last_errno;		/* host format */ | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user