This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Zap/fix dead macros
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 01 Apr 2003 18:52:33 -0500
- Subject: [ob] Zap/fix dead macros
Hello,
This cleanup zaps some never defined, and renames an obsolete macro.
committed,
Andrew
2003-04-01 Andrew Cagney <cagney at redhat dot com>
* printcmd.c (print_frame_nameless_args): Delete #ifdef
NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
PRINT_TYPELESS_INTEGER.
* config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
PUSH_RETURN_ADDRESS.
Index: printcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/printcmd.c,v
retrieving revision 1.58
diff -u -r1.58 printcmd.c
--- printcmd.c 1 Apr 2003 19:11:01 -0000 1.58
+++ printcmd.c 1 Apr 2003 23:46:24 -0000
@@ -1956,28 +1956,13 @@
for (i = 0; i < num; i++)
{
QUIT;
-#ifdef NAMELESS_ARG_VALUE
- NAMELESS_ARG_VALUE (fi, start, &arg_value);
-#else
argsaddr = get_frame_args_address (fi);
if (!argsaddr)
return;
-
arg_value = read_memory_integer (argsaddr + start, sizeof (int));
-#endif
-
if (!first)
fprintf_filtered (stream, ", ");
-
-#ifdef PRINT_NAMELESS_INTEGER
- PRINT_NAMELESS_INTEGER (stream, arg_value);
-#else
-#ifdef PRINT_TYPELESS_INTEGER
- PRINT_TYPELESS_INTEGER (stream, builtin_type_int, (LONGEST) arg_value);
-#else
fprintf_filtered (stream, "%ld", arg_value);
-#endif /* PRINT_TYPELESS_INTEGER */
-#endif /* PRINT_NAMELESS_INTEGER */
first = 0;
start += sizeof (int);
}
Index: config/sparc/tm-sp64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sp64.h,v
retrieving revision 1.17
diff -u -r1.17 tm-sp64.h
--- config/sparc/tm-sp64.h 1 Apr 2003 14:38:51 -0000 1.17
+++ config/sparc/tm-sp64.h 1 Apr 2003 23:46:26 -0000
@@ -108,8 +108,8 @@
#define CALL_DUMMY_ADDRESS() entry_point_address()
#undef FIX_CALL_DUMMY
#define FIX_CALL_DUMMY(DUMMYNAME, PC, FUN, NARGS, ARGS, TYPE, GCC_P)
-#undef PUSH_RETURN_ADDRESS
-#define PUSH_RETURN_ADDRESS(PC, SP) sparc_at_entry_push_return_address (PC, SP)
+#undef DEPRECATED_PUSH_RETURN_ADDRESS
+#define DEPRECATED_PUSH_RETURN_ADDRESS(PC, SP) sparc_at_entry_push_return_address (PC, SP)
extern CORE_ADDR sparc_at_entry_push_return_address (CORE_ADDR pc,
CORE_ADDR sp);
@@ -176,7 +176,7 @@
/* The remainder of these will accept the default definition. */
#undef SIZEOF_CALL_DUMMY_WORDS
-#undef PUSH_RETURN_ADDRESS
+#undef DEPRECATED_PUSH_RETURN_ADDRESS
#undef CALL_DUMMY_ADDRESS
#undef STORE_STRUCT_RETURN