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: Re: Emacs GDB garbled output Date: Tue, 7 Mar 2017 16:34:49 -0300 Message-ID: <843d40b6-82e5-8442-4edd-5b1832cd647d@gmail.com> References: <09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com> <83wpc1gkau.fsf@gnu.org> 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 1488915329 6699 195.159.176.226 (7 Mar 2017 19:35:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Mar 2017 19:35:29 +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 20:35:24 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 1clKtH-0001IG-O2 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 20:35:23 +0100 Original-Received: from localhost ([::1]:52334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clKtN-00040R-RX for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2017 14:35:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clKsq-00040M-Qx for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 14:34:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clKsn-0005Ig-Ly for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 14:34:56 -0500 Original-Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:33944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clKsn-0005IW-HS for help-gnu-emacs@gnu.org; Tue, 07 Mar 2017 14:34:53 -0500 Original-Received: by mail-qk0-x234.google.com with SMTP id p64so21590333qke.1 for ; Tue, 07 Mar 2017 11:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=As/DchOHAuQfwy6B1NY5+27BAKhp+SEWWfwPjFlGUuY=; b=a6O35hK4uINIh7D6Uz1Q4K3XZca6pSdHwJceGd4f3vaFHnwO7dwpwN+QaN6ZsZ5CyB ppzUdB8iKEojBQqGd6W43hkvT4HOvqR5huaO0O7+vMTx1X1N7/nvA2NMuWu2/n7FDnrH 3xhyzBg7IXuCZLud6hSDMjTD6UAYMTN5DYwXGlu5PMZBRAtX5VVDbXgrXe8kztSZtQyd QqBoDViOIwF6eKmcszx14INGpzn7QYCXJvfpYTnunDO2riHcv6EtVFScfoqpwygVQY/n szFCqevz/q6iSwQbZciz9GF2AFs4az3Rieuw8cx6rYYFARfMIz5WpzfVUH5v2vyT+wof e9Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=As/DchOHAuQfwy6B1NY5+27BAKhp+SEWWfwPjFlGUuY=; b=OhUrcrDaydWWS8ufUIT/3iCp0ZBz7CEvYTz5gA9zYBDtYGv7spmoRGeH2BNIIHgfW0 tUMF8AebJZPQXoAecIcfrrnZ48eEo1fNfa5zrGjb7AZA0K8cY3RStgAxUoD0JAAvX0Zu kNzo+tGzJcEKhzrfqFzFcPtF0LqXQQVMOHV/u/bualEmQSIWnVQBaP5oPprvS3witfS2 NEOaFFeWwainVna43fEw7mMBRVKEXV9g2AaP1cIkkv6g+H7R4jgs59i5mrP6tXn5YtGZ e78Qs9Lq9S2hkFLcdg7fZ13xAM/LBKlw9wxockMByN2WysPjyq9xqNsQEqQdvSAd0EIM 3jyg== X-Gm-Message-State: AMke39m3VsKDYC1oPrxzPhV+czjIh5UjTELWShwrwWKtbBNdQrkyJPyzl6eSdU3CmDTpcQ== X-Received: by 10.200.45.135 with SMTP id p7mr2538144qta.141.1488915292828; Tue, 07 Mar 2017 11:34:52 -0800 (PST) Original-Received: from [177.220.89.180] (wifi-177-220-89-180.ifi.unicamp.br. [177.220.89.180]) by smtp.gmail.com with ESMTPSA id g13sm634901qtg.8.2017.03.07.11.34.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 11:34:52 -0800 (PST) In-Reply-To: <83wpc1gkau.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::234 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:112449 Archived-At: You nailed it! I was invoking gdb with 'M-x gdb'. Now using 'M-x gud-gdb' instead solved all my problems. Thank you very much! Augusto Fraga Giachero. On 07-03-2017 12:48, Eli Zaretskii wrote: >> 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. >