This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Deprecate USE_REGISTER_NOT_ARG
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 15 Nov 2003 16:54:48 -0500
- Subject: [commit] Deprecate USE_REGISTER_NOT_ARG
Deprecating, it should, for instance, be possible to extend
_stabs_argument_has_addr rather than add a new architecture method.
Andrew
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.
Index: stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.67
diff -u -r1.67 stabsread.c
--- stabsread.c 8 Nov 2003 00:13:02 -0000 1.67
+++ stabsread.c 15 Nov 2003 21:28:51 -0000
@@ -1118,7 +1118,9 @@
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
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.63
diff -u -r1.63 tm-sparc.h
--- config/sparc/tm-sparc.h 6 Nov 2003 03:29:49 -0000 1.63
+++ config/sparc/tm-sparc.h 15 Nov 2003 21:28:59 -0000
@@ -143,7 +143,7 @@
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