From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11755 invoked by alias); 9 May 2007 21:36:07 -0000 Received: (qmail 11747 invoked by uid 22791); 9 May 2007 21:36:07 -0000 X-Spam-Check-By: sourceware.org Received: from hq.tensilica.com (HELO mailapp.tensilica.com) (65.205.227.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 May 2007 21:36:05 +0000 Received: from localhost ([127.0.0.1]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1HltpH-0003Ex-Qd for gdb-patches@sources.redhat.com; Wed, 09 May 2007 14:35:59 -0700 Received: from mailapp.tensilica.com ([127.0.0.1]) by localhost (mailapp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12395-01 for ; Wed, 9 May 2007 14:35:59 -0700 (PDT) Received: from heron.hq.tensilica.com ([192.168.11.123]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1HltpH-0003Er-Ek for gdb-patches@sources.redhat.com; Wed, 09 May 2007 14:35:59 -0700 Received: from [192.168.11.123] (heron.hq.tensilica.com [192.168.11.123]) by heron.hq.tensilica.com (Postfix) with ESMTP id 2B7FD5EC3B for ; Wed, 9 May 2007 14:35:59 -0700 (PDT) Message-ID: <46423EBE.3040902@tensilica.com> Date: Wed, 09 May 2007 21:36:00 -0000 From: Bob Wilson User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] print message when TUI not configured In-Reply-To: <46423E53.70803@tensilica.com> Content-Type: multipart/mixed; boundary="------------040105090403030101030609" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00150.txt.bz2 This is a multi-part message in MIME format. --------------040105090403030101030609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 208 Oops. I forgot to attach the patch. Here it is: 2007-05-09 Bob Wilson * main.c (captured_main): Recognize -tui option and print an error message when the TUI is not configured. --------------040105090403030101030609 Content-Type: text/x-diff; name="gdb-tui-option.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb-tui-option.patch" Content-length: 947 Index: main.c =================================================================== RCS file: /cvs/src/src/gdb/main.c,v retrieving revision 1.62 diff -u -r1.62 main.c --- main.c 9 Jan 2007 21:34:29 -0000 1.62 +++ main.c 9 May 2007 21:21:33 -0000 @@ -298,9 +298,7 @@ }; static struct option long_options[] = { -#if defined(TUI) {"tui", no_argument, 0, OPT_TUI}, -#endif {"xdb", no_argument, &xdb_commands, 1}, {"dbx", no_argument, &dbx_commands, 1}, {"readnow", no_argument, &readnow_symbol_files, 1}, @@ -398,8 +396,15 @@ break; case OPT_TUI: /* --tui is equivalent to -i=tui. */ +#ifdef TUI xfree (interpreter_p); interpreter_p = xstrdup (INTERP_TUI); +#else + fprintf_unfiltered (gdb_stderr, + _("%s: TUI mode is not supported\n"), + argv[0]); + exit (1); +#endif break; case OPT_WINDOWS: /* FIXME: cagney/2003-03-01: Not sure if this option is --------------040105090403030101030609--