help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs GDB garbled output


From: Augusto Fraga Giachero
Subject: Emacs GDB garbled output
Date: Tue, 7 Mar 2017 09:08:33 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

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 via email to

[Prev in Thread] Current Thread [Next in Thread]