This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18626] New: 'show configuration' and --enable-tui


https://sourceware.org/bugzilla/show_bug.cgi?id=18626

            Bug ID: 18626
           Summary: 'show configuration' and --enable-tui
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

'show configuration' shall print information where TUIis compiled in.

Just add an AC_DEFINE(HAVE_TUI, 1, [Define if TUI support is enabled]) in
configure.ac, line 2508:

# Check whether we should enable the TUI, but only do so if we really
# can.
if test x"$enable_tui" != xno; then
  if test -d $srcdir/tui; then
    if test "$curses_found" != no; then
      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
      AC_DEFINE(HAVE_TUI, 1, [Define if TUI support is enabled])
    else
      if test x"$enable_tui" = xyes; then
        AC_MSG_ERROR([no enhanced curses library found; disable TUI])
      else
        AC_MSG_WARN([no enhanced curses library found; disabling TUI])
      fi
    fi
  fi
fi

and then in gdb/top.c:gdb_print_configuration() insert

#if HAVE_TUI
fprintf_filtered (stream, _("\
           --enable-tui\n\
 "));
#else
fprintf_filtered (stream, _("\
           --disable-tui\n\
"));
#endif

between the --with-auto-load and -with-expat segments.

Then move the --with-babeltrace snippet right after --with-auto-load-dir and
reorder --with-guile, to keep the alphabetical order of the shown directives.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]