aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-30 08:53:28 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-30 08:53:28 +0000
commit0f552c5fc6ed8ddf060a01c97cbef7c0c890ffe4 (patch)
tree462825c1bee2156abb8e122392916b114a0cd7f6 /gdb/defs.h
parentc47793da968c7420c6e7c56500d876d83a0705c7 (diff)
downloadgdb-0f552c5fc6ed8ddf060a01c97cbef7c0c890ffe4.zip
gdb-0f552c5fc6ed8ddf060a01c97cbef7c0c890ffe4.tar.gz
gdb-0f552c5fc6ed8ddf060a01c97cbef7c0c890ffe4.tar.bz2
* buildsym.c (scan_file_globals): Beware the null file.
Fix from Jim Williams. * stack.c (return_command): Evaluate expression *before* popping off the stack frames! Fix inspired by Jim Williams. (up_silently_command, down_silently_command): No sel frame is error. * defs.h (memcpy, memset): Conditionalize decls on #ifndef MEM_FNS_DECLARED, since DECstation differs. (alloca): Break out the STDC and non-STDC alloca cases, to make it work on old preprocessors as well as "picky ANSI" ones. * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED. * mips-tdep.c (heuristic_proc_start): Zero arg produces zero. * utils.c (fputs_demangled): Rename SLOP since DECstation system header files define it!
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index a4b0a23..1190f05 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -664,8 +664,10 @@ qsort PARAMS ((void *base, size_t nmemb, /* 4.10.5.2 */
size_t size,
int (*comp)(const void *, const void *)));
+#ifndef MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
extern PTR
memcpy PARAMS ((void *, const void *, size_t)); /* 4.11.2.1 */
+#endif
extern int
memcmp PARAMS ((const void *, const void *, size_t)); /* 4.11.4.1 */
@@ -682,8 +684,10 @@ strstr PARAMS ((const char *, const char *)); /* 4.11.5.7 */
extern char *
strtok PARAMS ((char *, const char *)); /* 4.11.5.8 */
+#ifndef MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
extern PTR
memset PARAMS ((void *, int, size_t)); /* 4.11.6.1 */
+#endif
extern char *
strerror PARAMS ((int)); /* 4.11.6.2 */
@@ -696,7 +700,11 @@ strerror PARAMS ((int)); /* 4.11.6.2 */
# ifdef sparc
# include <alloca.h> /* NOTE: Doesn't declare alloca() */
# endif
- extern PTR alloca PARAMS ((size_t));
+# ifdef __STDC__
+ extern void *alloca (size_t);
+# else /* __STDC__ */
+ extern char *alloca ();
+# endif
# endif
#endif