diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1993-07-09 16:50:43 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1993-07-09 16:50:43 +0000 |
commit | 2fcdae93aafbc5de1a370169ed673cc75e17d022 (patch) | |
tree | 8a40bc57c5ecf24cb7c44b1f17255da846862781 /gdb/defs.h | |
parent | a40fe908ce5d4366286cebcff3317b59c3ce5e25 (diff) | |
download | gdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.zip gdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.tar.gz gdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.tar.bz2 |
* defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
* mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
is at the start of the dummy code.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -295,9 +295,6 @@ batch_mode PARAMS ((void)); extern int input_from_terminal_p PARAMS ((void)); -extern int -catch_errors PARAMS ((int (*) (char *), char *, char *)); - /* From printcmd.c */ extern void @@ -626,8 +623,25 @@ exit PARAMS ((int)); /* 4.10.4.3 */ extern NORETURN void /* Does not return to the caller. */ nomem PARAMS ((long)); +/* Reasons for calling return_to_top_level. */ +enum return_reason { + /* User interrupt. */ + RETURN_QUIT, + + /* Any other error. */ + RETURN_ERROR +}; + +#define RETURN_MASK_QUIT (1 << (int)RETURN_QUIT) +#define RETURN_MASK_ERROR (1 << (int)RETURN_ERROR) +#define RETURN_MASK_ALL (RETURN_MASK_QUIT | RETURN_MASK_ERROR) +typedef int return_mask; + extern NORETURN void /* Does not return to the caller. */ -return_to_top_level PARAMS ((void)); +return_to_top_level PARAMS ((enum return_reason)); + +extern int catch_errors PARAMS ((int (*) (char *), void *, char *, + return_mask)); extern void warning_setup PARAMS ((void)); @@ -776,18 +790,12 @@ strerror PARAMS ((int)); /* 4.11.6.2 */ #define LITTLE_ENDIAN 1234 #endif -/* Target-system-dependent parameters for GDB. - - The standard thing is to include defs.h. However, files that are - specific to a particular target can define TM_FILE_OVERRIDE before - including defs.h, then can include any particular tm-file they desire. */ +/* Target-system-dependent parameters for GDB. */ /* Target machine definition. This will be a symlink to one of the tm-*.h files, built by the `configure' script. */ -#ifndef TM_FILE_OVERRIDE #include "tm.h" -#endif /* The bit byte-order has to do just with numbering of bits in debugging symbols and such. Conceptually, it's quite separate |