From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs GDB garbled output Date: Tue, 07 Mar 2017 17:48:09 +0200 Message-ID: <83wpc1gkau.fsf@gnu.org> References: <09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1488902685 7906 195.159.176.226 (7 Mar 2017 16:04:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Mar 2017 16:04:45 +0000 (UTC) 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 17:04:41 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 1clHbL-0001QA-2o for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 17:04:39 +0100 Original-Received: from localhost ([::1]:51396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clHbR-0005tO-8F for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 11:04:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clHLs-0000gI-TS for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 10:48:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clHLp-0004yk-0U for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 10:48:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clHLo-0004yg-TN for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 10:48:36 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4019 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1clHLo-0007wm-61 for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 10:48:36 -0500 In-reply-to: <09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com> (message from Augusto Fraga Giachero on Tue, 7 Mar 2017 09:08:33 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:112441 Archived-At: > From: Augusto Fraga Giachero > Date: Tue, 7 Mar 2017 09:08:33 -0300 > > 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) Which Emacs command do you use to invoke GDB? Is it "M-x gud-gdb" or "M-x gdb"? If you used the latter, try the former instead.