From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7474 invoked by alias); 18 Jul 2010 09:12:18 -0000 Received: (qmail 7463 invoked by uid 22791); 18 Jul 2010 09:12:17 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 18 Jul 2010 09:12:13 +0000 Received: by bwz9 with SMTP id 9so2366524bwz.0 for ; Sun, 18 Jul 2010 02:12:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.80.98 with SMTP id s34mr2667815bkk.211.1279444325386; Sun, 18 Jul 2010 02:12:05 -0700 (PDT) Received: by 10.204.119.2 with HTTP; Sun, 18 Jul 2010 02:12:05 -0700 (PDT) In-Reply-To: References: Date: Sun, 18 Jul 2010 09:12:00 -0000 Message-ID: Subject: Re: [patch] Dummy first call to gdb_has_a_terminal() From: Balazs Kezes To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2010-07/txt/msg00269.txt.bz2 I've forgotten to add an include file to the patch, so here's the revised patch: Index: tui-interp.c =================================================================== RCS file: /cvs/src/src/gdb/tui/tui-interp.c,v retrieving revision 1.27 diff -c -p -r1.27 tui-interp.c *** tui-interp.c 17 May 2010 22:21:43 -0000 1.27 --- tui-interp.c 18 Jul 2010 09:07:21 -0000 *************** *** 30,35 **** --- 30,36 ---- #include "tui/tui.h" #include "tui/tui-io.h" #include "exceptions.h" + #include "terminal.h" /* Set to 1 when the TUI mode must be activated when we first start gdb. */ *************** _initialize_tui_interp (void) *** 224,229 **** --- 225,233 ---- tui_command_loop, }; + /* Dummy first call to save sane terminal settings. */ + (void) gdb_has_a_terminal (); + /* Create a default uiout builder for the TUI. */ tui_out = tui_out_new (gdb_stdout); interp_add (interp_new (INTERP_TUI, NULL, tui_out, &procs));