summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-11-15 21:49:30 +0000
committerAndrew Cagney <cagney@redhat.com>2003-11-15 21:49:30 +0000
commitae95651a166b49ce50e8f2b2e3fcf99cc5f4ec70 (patch)
treecbbdf7450c2bf334af1b13854935ada4c8de891a
parent40ad130be1ffe38ee7c3afc3b887303c903168bb (diff)
downloadgdb-ae95651a166b49ce50e8f2b2e3fcf99cc5f4ec70.tar.gz
2003-11-15 Andrew Cagney <cagney@redhat.com>
* config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename USE_REGISTER_NOT_ARG. * stabsread.c (define_symbol): Update.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/config/sparc/tm-sparc.h2
-rw-r--r--gdb/stabsread.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 984dbaf4de7..abe31523cd9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2003-11-15 Andrew Cagney <cagney@redhat.com>
+ * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
+ USE_REGISTER_NOT_ARG.
+ * stabsread.c (define_symbol): Update.
+
+2003-11-15 Andrew Cagney <cagney@redhat.com>
+
* bcache.h (deprecated_bcache): Declare.
(bcache): Make returned buffer constant.
* bcache.c (deprecated_bcache): New function.
diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h
index e8deebc44ad..af8feccdc2f 100644
--- a/gdb/config/sparc/tm-sparc.h
+++ b/gdb/config/sparc/tm-sparc.h
@@ -143,7 +143,7 @@ extern CORE_ADDR sparc_pc_adjust (CORE_ADDR);
never saving it onto the stack. So we better not believe the "p" symbol
descriptor stab. */
-#define USE_REGISTER_NOT_ARG
+#define DEPRECATE_USE_REGISTER_NOT_ARG
/* For acc, there's no need to correct LBRAC entries by guessing how
they should work. In fact, this is harmful because the LBRAC
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 8f218e527e4..14b4b45eeb0 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1118,7 +1118,9 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
if (local_symbols
&& local_symbols->nsyms > 0
-#ifndef USE_REGISTER_NOT_ARG
+#ifndef DEPRECATED_USE_REGISTER_NOT_ARG
+ /* DEPRECATED_USE_REGISTER_NOT_ARG is only defined by
+ the SPARC. */
&& gdbarch_stabs_argument_has_addr (current_gdbarch,
SYMBOL_TYPE (sym))
#endif