From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Augusto Fraga Giachero Newsgroups: gmane.emacs.help Subject: Emacs GDB garbled output Date: Tue, 7 Mar 2017 09:08:33 -0300 Message-ID: <09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1488888561 9942 195.159.176.226 (7 Mar 2017 12:09:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Mar 2017 12:09:21 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 13:09:17 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clDvW-0001vL-3I for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 13:09:14 +0100 Original-Received: from localhost ([::1]:49435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clDvc-00034n-4u for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 07:09:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clDv2-00033C-At for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 07:08:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clDux-0004pv-BM for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 07:08:44 -0500 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:35814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clDux-0004pH-6A for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 07:08:39 -0500 Original-Received: by mail-qk0-x229.google.com with SMTP id v125so140744472qkh.2 for ; Tue, 07 Mar 2017 04:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=u8ionbRfwzsUCVy0chi4FsJukO1M0gplA7FRIH4658E=; b=Z7TxD6D+D/pHW6/U/8aEegK54g1YY0/c1UoZ0TM8OpZr1jZMtdTvJEJ9Wp3N6X4uDs 29SVeKIwyhF0qthhTE2iQJw25UgOp+JxFY/pnnlQ9hoKNZouAHrX4x8BtFer1y3LfOFr fPTRd59KO4UPPTBRm/7qZKkhbHzF1YAlF2NwJf+BoNpX+cvo+XrQwJAvend4NcRmawpz Iw+xYn3iT/4arzTXAkGFqql0gi5j4KKjwzS3Eb1CwWz0/P9j6H3Ma1csitYPYi/+dnTJ h/vJjzRtABKZCuYUTksA+Z53YGgp2bRWaxWAo6Hw1zl2rD9itYcYwN5QYPH5kc3G99dh K49w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=u8ionbRfwzsUCVy0chi4FsJukO1M0gplA7FRIH4658E=; b=bd/wgJ0kRxUfmzOx2Q15U6gxU18YyPD5Iumq0carvphnVOnOGSBrklp6clp8UsrEjb uv/ry41MOO0MUPSerCkNW3b7PNqBlNW74o5UZWyxntifjtX0H0trimco1F1qNn/PmKd1 s0tXE4FbJ2wdKyxH1nL67W0xn0qoCiVJc6j3446jKNBYFvwHX8AsP2n7zfgWCCxa7ApS XsxJIcj+mIDUS35k8EYkWMDA9czaBwGgQWmLd2Snz6ZJeyc12kFppQpGZtayYbZGerw8 HoKKsXytxduCIUITvBa0VUSGiRQ+oPI60l0FWOGsPt2yRmm6nEejgLSlpJ+lcHmSSs3P O8wg== X-Gm-Message-State: AMke39lG4zpYkXbanRtBnlh69H/T34mnka9uT7iTiC06mJ/U23TahDkpV6eKT2569dP1Jg== X-Received: by 10.55.17.206 with SMTP id 75mr21417861qkr.156.1488888517126; Tue, 07 Mar 2017 04:08:37 -0800 (PST) Original-Received: from [177.220.35.79] (eduroam-177-220-35-79.fee.unicamp.br. [177.220.35.79]) by smtp.gmail.com with ESMTPSA id e19sm1626324qta.68.2017.03.07.04.08.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 04:08:36 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112439 Archived-At: Hello Emacs users! I've been using Emacs + GDB (GUD) for debugging programs written in C since more or less 2 years. I generally recompile my projects by just invoking 'make' in the GDB shell. What bothers me is that when the build process outputs a lot of text in a short period of time (such a compile error or warnings) the GDB shell doesn't catch all the text, and sometimes part of the text is displayed when the next command is executed. For example: GDB under Emacs: (gdb) make gcc -MMD -c -g -Wall -I inc/ -Og src/testlib.c -o src/testlib.o src/testlib.c:4:1: error: expected ‘ int isPrime(uint64_t num) stop make: (gdb) Standalone GDB: gcc -MMD -c -g -Wall -I inc/ -Og src/testlib.c -o src/testlib.o src/testlib.c:4:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ int isPrime(uint64_t num) ^~~ make: *** [Makefile:27: src/testlib.o] Error 1 Anyone that have experienced this behavior known how to fix it? Thanks, Augusto Fraga Giachero.