This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] remove PROGRESS macros
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: mec dot gnu at mindspring dot com
- Date: Tue, 17 Feb 2004 19:14:31 -0500
- Subject: [PATCH] remove PROGRESS macros
These macros are defined only for the mpw platform which was
obsoleted. I didn't change the testfile yet, but added a comment, as
not to mess up Michael's tables.
elena
2004-02-17 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (defs_h): Remove dependency on progress_h.
* defs.h (QUIT): Remove use of PROGRESS macro. Remove include
of progress.h.
* main.c (captured_main): Delete use of START_PROGRESS and
END_PROGRESS.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.497
diff -u -p -r1.497 Makefile.in
--- Makefile.in 14 Feb 2004 15:46:32 -0000 1.497
+++ Makefile.in 18 Feb 2004 00:17:57 -0000
@@ -638,7 +638,7 @@ cp_abi_h = cp-abi.h
cp_support_h = cp-support.h $(symtab_h)
dcache_h = dcache.h
defs_h = defs.h $(config_h) $(ansidecl_h) $(gdb_locale_h) $(gdb_signals_h) \
- $(libiberty_h) $(progress_h) $(bfd_h) $(ui_file_h) $(xm_h) $(nm_h) \
+ $(libiberty_h) $(bfd_h) $(ui_file_h) $(xm_h) $(nm_h) \
$(tm_h) $(fopen_same_h) $(gdbarch_h)
dictionary_h = dictionary.h
disasm_h = disasm.h
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.141
diff -u -p -r1.141 defs.h
--- defs.h 10 Feb 2004 19:08:12 -0000 1.141
+++ defs.h 18 Feb 2004 00:11:55 -0000
@@ -63,8 +63,6 @@
#include "libiberty.h"
-#include "progress.h"
-
/* For BFD64 and bfd_vma. */
#include "bfd.h"
@@ -201,7 +199,6 @@ extern void quit (void);
#define QUIT { \
if (quit_flag) quit (); \
if (interactive_hook) interactive_hook (); \
- PROGRESS (1); \
}
#endif
Index: main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.39
diff -u -p -r1.39 main.c
--- main.c 2 Feb 2004 16:14:36 -0000 1.39
+++ main.c 18 Feb 2004 00:02:34 -0000
@@ -163,8 +163,6 @@ captured_main (void *data)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- START_PROGRESS (argv[0], 0);
-
/* This needs to happen before the first use of malloc. */
init_malloc (NULL);
@@ -749,8 +747,6 @@ extern int gdbtk_test (char *);
#ifdef BEFORE_MAIN_LOOP_HOOK
BEFORE_MAIN_LOOP_HOOK;
#endif
-
- END_PROGRESS (argv[0]);
/* Show time and/or space usage. */
2004-02-17 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
Index: selftest.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/selftest.exp,v
retrieving revision 1.12
diff -u -p -r1.12 selftest.exp
--- selftest.exp 23 Sep 2003 19:19:48 -0000 1.12
+++ selftest.exp 18 Feb 2004 00:16:06 -0000
@@ -95,6 +95,9 @@ proc do_steps_and_nexts {} {
set command "next"
}
-re ".*START_PROGRESS.*$gdb_prompt $" {
+ # Note: ezannoni/2004/02/17: This check should be
+ # removed, since as of today that source line is not
+ # in gdb anymore.
set description "next over START_PROGRESS and everything it calls"
set command "next"
}