all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Augusto Fraga Giachero <augustofg96@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs GDB garbled output
Date: Tue, 7 Mar 2017 09:08:33 -0300	[thread overview]
Message-ID: <09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com> (raw)

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.



             reply	other threads:[~2017-03-07 12:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07 12:08 Augusto Fraga Giachero [this message]
2017-03-07 15:48 ` Emacs GDB garbled output Eli Zaretskii
2017-03-07 19:34   ` Augusto Fraga Giachero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09984c27-0cd8-5e2c-da4e-3a75d2a911e4@gmail.com \
    --to=augustofg96@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.