This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Cleanup configure.in (10/n)
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 21:48:14 +0100 (CET)
- Subject: [PATCH] Cleanup configure.in (10/n)
This patch removes the UI_OUT cruft that was still lurking in
configure.in. Only ada-lang.c still contained code conditionalized on
UI_OUT.
Checked in.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.in: Remove UI_OUT configuration code.
* ada-lang.c: Update assuming UI_OUT is always true.
* Makefile.in (UIOUT_CFLAGS): Remove.
* configure: Regenerated.
* TODO: Remove blurb about elimination of -DUI_OUT.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.106
diff -u -p -r1.106 configure.in
--- configure.in 2 Jan 2003 20:12:29 -0000 1.106
+++ configure.in 2 Jan 2003 20:24:46 -0000
@@ -865,29 +865,6 @@ fi
dnl Handle optional features that can be enabled.
-# Configure UI_OUT by default (before 5.2 it can be disabled)
-# It must be configured if gdbmi is configured
-
-UIOUT_CFLAGS=
-AC_SUBST(UIOUT_CFLAGS)
-
-AC_ARG_WITH(uiout,
-[ --with-uiout Use new uiout functions instead of *printf's],
-[case "${withval}" in
- yes) want_uiout=true ;;
- no) if test $enable_gdbmi = yes; then
- AC_MSG_ERROR(uiout is needed for MI and cannot be disabled)
- else
- want_uiout=false
- fi ;;
- *) AC_MSG_ERROR(bad value ${withval} for GDB with-uiout option) ;;
-esac],
-[want_uiout=true])dnl
-
-if test $want_uiout = true; then
- UIOUT_CFLAGS="-DUI_OUT=1"
-fi
-
AC_ARG_ENABLE(netrom,
[ --enable-netrom Enable NetROM support],
[case "${enableval}" in
Index: ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.16
diff -u -p -r1.16 ada-lang.c
--- ada-lang.c 29 Nov 2002 19:15:14 -0000 1.16
+++ ada-lang.c 2 Jan 2003 20:24:50 -0000
@@ -36,9 +36,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg
#include "breakpoint.h"
#include "gdbcore.h"
#include "ada-lang.h"
-#ifdef UI_OUT
#include "ui-out.h"
-#endif
struct cleanup *unresolved_names;
@@ -5054,7 +5052,6 @@ find_printable_frame (struct frame_info
void
ada_report_exception_break (struct breakpoint *b)
{
-#ifdef UI_OUT
/* FIXME: break_on_exception should be defined in breakpoint.h */
/* if (b->break_on_exception == 1)
{
@@ -5092,7 +5089,6 @@ ada_report_exception_break (struct break
else if (b->break_on_exception == 3)
fputs_filtered ("on assert failure", gdb_stdout);
*/
-#endif
}
int
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.301
diff -u -p -r1.301 Makefile.in
--- Makefile.in 2 Jan 2003 16:54:54 -0000 1.301
+++ Makefile.in 2 Jan 2003 20:24:51 -0000
@@ -109,9 +109,6 @@ LIBIBERTY = ../libiberty/libiberty.a
MMALLOC = @MMALLOC@
MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
-# Configured by the --with-uiout option to configure.
-UIOUT_CFLAGS = @UIOUT_CFLAGS@
-
# Where is the BFD library? Typically in ../bfd.
BFD_DIR = ../bfd
BFD = $(BFD_DIR)/libbfd.a
@@ -337,7 +334,7 @@ INTERNAL_WARN_CFLAGS = \
$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
- $(INTL_CFLAGS) $(ENABLE_CFLAGS) $(UIOUT_CFLAGS) \
+ $(INTL_CFLAGS) $(ENABLE_CFLAGS) \
$(GDB_WARN_CFLAGS)
INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
Index: TODO
===================================================================
RCS file: /cvs/src/src/gdb/TODO,v
retrieving revision 1.96
diff -u -p -r1.96 TODO
--- TODO 11 May 2002 23:48:23 -0000 1.96
+++ TODO 2 Jan 2003 20:24:54 -0000
@@ -114,12 +114,6 @@ The following cleanups have been identif
--
-Remove old code that does not use ui_out functions and all the related
-"ifdef"s. This also allows the elimination of -DUI_OUT from
-Makefile.in and configure.in.
-
---
-
Compiler warnings.
Eliminate warnings for all targets on at least one host for one of the