This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[obish] Move MDEBUG_EFI_SYMBOL_NAME out of tm-*.h
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 31 Oct 2004 12:59:48 -0500
- Subject: [obish] Move MDEBUG_EFI_SYMBOL_NAME out of tm-*.h
Hello,
MDEBUG_EFI_SYMBOL_NAME was in tm-*.h so that it's definition could be
used to #ifdef some code in objfile.c. Since the #ifdef is no more,
there's no longer a reason to condition-on-architecture define it.
This moves the macro out of tm-*.h and into the most logical header.
committed,
Andrew
2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
* mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
* config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
* config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
Index: mdebugread.c
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.c,v
retrieving revision 1.70
diff -p -u -r1.70 mdebugread.c
--- mdebugread.c 31 Oct 2004 17:48:17 -0000 1.70
+++ mdebugread.c 31 Oct 2004 17:56:32 -0000
@@ -57,14 +57,6 @@
#include "block.h"
#include "dictionary.h"
#include "mdebugread.h"
-
-/* These are needed if the tm.h file does not contain the necessary
- mips specific definitions. */
-
-#ifndef MDEBUG_EFI_SYMBOL_NAME
-#define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-#endif
-
#include "gdb_stat.h"
#include "gdb_string.h"
Index: mdebugread.h
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.h,v
retrieving revision 1.3
diff -p -u -r1.3 mdebugread.h
--- mdebugread.h 31 Oct 2004 17:48:17 -0000 1.3
+++ mdebugread.h 31 Oct 2004 17:56:32 -0000
@@ -34,4 +34,9 @@ struct mdebug_extra_func_info
PDR pdr; /* Procedure descriptor record */
};
+/* Special symbol found in blocks associated with routines. We can
+ hang mdebug_extra_func_info's off of this. */
+
+#define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
+
#endif /* MDEBUGREAD_H */
Index: config/alpha/tm-alpha.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alpha.h,v
retrieving revision 1.33
diff -p -u -r1.33 tm-alpha.h
--- config/alpha/tm-alpha.h 31 Oct 2004 04:33:14 -0000 1.33
+++ config/alpha/tm-alpha.h 31 Oct 2004 17:56:32 -0000
@@ -24,11 +24,6 @@
#ifndef TM_ALPHA_H
#define TM_ALPHA_H
-/* Special symbol found in blocks associated with routines. We can hang
- alpha_extra_func_info_t's off of this. */
-
-#define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-
#define RA_REGNUM 26 /* XXXJRT needed by mdebugread.c */
#endif /* TM_ALPHA_H */
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.77
diff -p -u -r1.77 tm-mips.h
--- config/mips/tm-mips.h 31 Oct 2004 17:38:16 -0000 1.77
+++ config/mips/tm-mips.h 31 Oct 2004 17:56:32 -0000
@@ -33,9 +33,4 @@ struct symbol;
struct type;
struct value;
-/* Special symbol found in blocks associated with routines. We can
- hang mdebug_extra_func_info's off of this. */
-
-#define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-
#endif /* TM_MIPS_H */