aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-06-21 21:47:06 +0000
committerSteve Chamberlain <sac@cygnus>1995-06-21 21:47:06 +0000
commit45993f6118fb8065ed70d448f4e741763cb8fe4d (patch)
tree5d0efb4afc2f3a4edde351181b04a8dd37a1fad4 /gdb/defs.h
parent65b175c5e61b058aa7de9660c720371b11b95c45 (diff)
downloadgdb-45993f6118fb8065ed70d448f4e741763cb8fe4d.zip
gdb-45993f6118fb8065ed70d448f4e741763cb8fe4d.tar.gz
gdb-45993f6118fb8065ed70d448f4e741763cb8fe4d.tar.bz2
Hmm.. The ChangeLog went in, but not the code....
* monitor.c: Turn on caching. (monitor_printf): If a ^C was sent, don't expect to see its echo. (monitor_open): Enable caching. (monitor_resume, monitor_load): Flush cache. (monitor_xfer_memory): Call cache routine. (monitor_dump_regs): New. (monitor_fetch_registers): If monitor_dump_regs available then use it. (monitor_load): Don't ref exec_bfd if it's NULL. (monitor_load_srec): Use new monitor_make_srec calling convention. (monitor_make_srec): Rewrite to cope with two, three and four byte addresses. * remote-hms.c (hms_cmds): Initialze end-of-command delim. * dcache.h, dcache.h: Rewritten. * remote.c: Reenable caching. (getpkt): Reduce MAX_TRIES to 3. (remote_xfer_memory): Use dcache_xfer_memory. * defs.h (error_hook): New. * top.c (error_hook): New definition. * utils.c (error): Use error_hook if initialized. * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use HAVE_SOCKETS in place of #ifndef GO32.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h48
1 files changed, 44 insertions, 4 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 8c4bd53..bafb91d 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -28,6 +28,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "ansidecl.h"
+#ifdef ANSI_PROTOTYPES
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
#include "libiberty.h"
/* libiberty.h can't declare this one, but evidently we can. */
@@ -256,10 +262,10 @@ extern void puts_filtered PARAMS ((char *));
extern void puts_unfiltered PARAMS ((char *));
-extern void vprintf_filtered PARAMS ((char *, ...))
+extern void vprintf_filtered PARAMS ((char *, va_list))
ATTR_FORMAT(printf, 1, 0);
-extern void vfprintf_filtered PARAMS ((FILE *, char *, ...))
+extern void vfprintf_filtered PARAMS ((FILE *, char *, va_list))
ATTR_FORMAT(printf, 2, 0);
extern void fprintf_filtered PARAMS ((FILE *, char *, ...))
@@ -274,10 +280,10 @@ extern void printf_filtered PARAMS ((char *, ...))
extern void printfi_filtered PARAMS ((int, char *, ...))
ATTR_FORMAT(printf, 2, 3);
-extern void vprintf_unfiltered PARAMS ((char *, ...))
+extern void vprintf_unfiltered PARAMS ((char *, va_list))
ATTR_FORMAT(printf, 1, 0);
-extern void vfprintf_unfiltered PARAMS ((FILE *, char *, ...))
+extern void vfprintf_unfiltered PARAMS ((FILE *, char *, va_list))
ATTR_FORMAT(printf, 2, 0);
extern void fprintf_unfiltered PARAMS ((FILE *, char *, ...))
@@ -631,6 +637,7 @@ extern void free ();
#endif /* MALLOC_INCOMPATIBLE */
+#ifndef WIN32
extern char *strchr ();
extern char *strrchr ();
@@ -640,6 +647,7 @@ extern char *strstr ();
extern char *strtok ();
extern char *strerror ();
+#endif
/* Various possibilities for alloca. */
#ifndef alloca
@@ -815,6 +823,10 @@ extern CORE_ADDR push_word PARAMS ((CORE_ADDR, unsigned LONGEST));
#define MAINTENANCE_CMDS 1
#endif
+#ifdef MAINTENANCE_CMDS
+extern int watchdog;
+#endif
+
#include "dis-asm.h" /* Get defs for disassemble_info */
extern int dis_asm_read_memory PARAMS ((bfd_vma memaddr, bfd_byte *myaddr,
@@ -856,8 +868,36 @@ extern int (*target_wait_hook) PARAMS ((int pid,
extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c,
char *cmd, int from_tty));
+extern NORETURN void (*error_hook) PARAMS (());
+
+
+
/* Inhibit window interface if non-zero. */
extern int use_windows;
+/* Symbolic definitions of filename-related things. */
+/* FIXME, this doesn't work very well if host and executable
+ filesystems conventions are different. */
+
+#ifndef DIRNAME_SEPARATOR
+#define DIRNAME_SEPARATOR ':'
+#endif
+
+#ifndef SLASH_P
+#define SLASH_P(X) ((X)=='/')
+#endif
+
+#ifndef SLASH_CHAR
+#define SLASH_CHAR '/'
+#endif
+
+#ifndef SLASH_STRING
+#define SLASH_STRING "/"
+#endif
+
+#ifndef ROOTED_P
+#define ROOTED_P(X) (SLASH_P((X)[0]))
+#endif
+
#endif /* #ifndef DEFS_H */