all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Color codes in GDB-GUD
Date: Tue, 11 Apr 2017 10:50:30 +0300	[thread overview]
Message-ID: <834lxvl6wp.fsf@gnu.org> (raw)
In-Reply-To: <ochv38$pst$1@blaine.gmane.org> (message from Florian Lindner on Tue, 11 Apr 2017 09:03:09 +0200)

> From: Florian Lindner <mailinglists@xgm.de>
> Date: Tue, 11 Apr 2017 09:03:09 +0200
> 
> >> when working with gdb, started using M-x gdb with -annotate=1 I have color codes ^Z^Z everywhere, like:
> >>
> >> ^Z^Z\x1a\x1a/home/florian/precice/src/mapping/PetRadialBasisFctMapping.hpp:803:31382:beg:0x11668d9
> >>
> >> How can I get rid of them?
> > 
> > Does it help to invoke "M-x gud-gdb RET" instead?
> 
> Hello,
> 
> that does seem to fix that issue.
> 
> However:
> 
> - clicking on the fringe to set a breakpoint does not work anymore
> - gdb-many-windows seems to be unavailable.

Of course, because gud-gdb doesn't support this fancy new stuff.  If
you want those features, then invoke GDB with "M-x gdb RET", but do
NOT add the -annotate=1 option to the GDB command line.  Instead,
leave the command line as Emacs offers, i.e "gdb -i=mi", and only edit
the name of the program you want to debug, if needed.  The -i=mi part
activates an alternative method of communicating with GDB that doesn't
need the annotations, and that ^Z^Z^Z^Z stuff is produced by
annotations.

> What is the difference between gdb and gud-gdb?

gud-gdb is the old gdb command, which uses annotations; gdb is a new
command which uses the GDB/MI interface for communicating with GDB,
and supports new GUI features in the Emacs GDB front-end.

You need to decide whether you want annotations or the new GUI
features; they cannot be had together.



  reply	other threads:[~2017-04-11  7:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 12:02 Color codes in GDB-GUD Florian Lindner
2017-04-10 13:29 ` Eli Zaretskii
2017-04-11  7:03   ` Florian Lindner
2017-04-11  7:50     ` Eli Zaretskii [this message]
2017-04-12  8:09       ` Florian Lindner
2017-04-12  9:22         ` Eli Zaretskii

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=834lxvl6wp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.