From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124467 invoked by alias); 2 Nov 2017 15:12:10 -0000 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 Received: (qmail 124457 invoked by uid 89); 2 Nov 2017 15:12:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=decades, messing, staring X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Nov 2017 15:12:05 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 04ACD5F739 for ; Thu, 2 Nov 2017 15:12:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 04ACD5F739 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves@redhat.com Received: from cascais.lan (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 86E3B5C3FD for ; Thu, 2 Nov 2017 15:12:03 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Some terminal handling TCL Date: Thu, 02 Nov 2017 15:12:00 -0000 Message-Id: <1509635522-16945-1-git-send-email-palves@redhat.com> X-SW-Source: 2017-11/txt/msg00030.txt.bz2 In context of multi-target support, I've been messing around with GDB's tty / job control handling, the 'terminal ours/inferior' switching, etc, and staring at gdb/inflow.c a lot. While adjusting/extending this machinery, the fewer code paths / variants we have to consider, the better. Hence this precursor series. Patch #1 removes support for the legacy termio and sgtty terminal interfaces in favor of assuming termios. I believe that no gdb-supported system is actually using termio/sgtty today, and so I believe that this is actually a no-op change. Patch #2 removes really odd code that doesn't look like have any reason to exist. Patch #3 removes a small gdb abstraction over SIGTSTP that hasn't been useful in decades. Pedro Alves (3): Assume termios is available, remove support for termio and sgtty Don't set terminal flags twice in a row Eliminate STOP_SIGNAL, use SIGTSTP directly gdb/Makefile.in | 9 +- gdb/common/gdb_termios.h | 78 ------------- gdb/common/job-control.c | 23 ++-- gdb/configure | 3 +- gdb/configure.ac | 3 +- gdb/event-top.c | 26 ++--- gdb/event-top.h | 10 +- gdb/gdbserver/configure | 2 +- gdb/gdbserver/configure.ac | 2 +- gdb/gdbserver/remote-utils.c | 33 +----- gdb/inflow.c | 97 ++++------------ gdb/inflow.h | 12 +- gdb/ser-base.c | 8 -- gdb/ser-base.h | 3 - gdb/ser-event.c | 1 - gdb/ser-go32.c | 12 -- gdb/ser-mingw.c | 4 - gdb/ser-pipe.c | 1 - gdb/ser-tcp.c | 1 - gdb/ser-unix.c | 264 +------------------------------------------ gdb/serial.c | 8 -- gdb/serial.h | 12 -- gdb/top.c | 8 +- 23 files changed, 63 insertions(+), 557 deletions(-) delete mode 100644 gdb/common/gdb_termios.h -- 2.5.5