unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Cc: Dan Nicolaescu <dann@ics.uci.edu>, emacs-devel@gnu.org
Subject: Re: better "pr" with gdb-6.4
Date: Wed, 8 Feb 2006 16:34:14 +1300	[thread overview]
Message-ID: <17385.26294.743373.471169@kahikatea.snap.net.nz> (raw)
In-Reply-To: <m3k6c7a1c2.fsf@kfs-l.imdomain.dk>

 > Ok, but I would like ppargs to print a short form like this:
 > (load "..." t t t)

The problem is that GDB's output is line buffered so output isn't flushed
until a newline is sent.  This is the also true for the existing command
pp1.  However such commands do work with GDB within Emacs.  For that case
this should work:

define ppargs
  set $i = nargs
  printf "("
  while $i
    set $index = nargs - $i
    pp2 args[$index]
    set $i = $i - 1
    if $i
      printf " "
    end
  end
  printf ")\n"
end

 > Is it possible to write a macro that would traverse up the C stack and do
 > something sensible for "known functions" like Ffuncall and Feval.

I think it is possible.  I'll try to work something out.

Nick

  reply	other threads:[~2006-02-08  3:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05 18:40 better "pr" with gdb-6.4 Dan Nicolaescu
2006-02-05 21:01 ` Kim F. Storm
2006-02-07  0:04   ` Dan Nicolaescu
2006-02-07  2:39     ` Nick Roberts
2006-02-07  9:08       ` Kim F. Storm
2006-02-07  9:52         ` Miles Bader
2006-02-07 10:48           ` Nick Roberts
2006-02-07 10:25         ` Nick Roberts
2006-02-07 10:51           ` Kim F. Storm
2006-02-08  3:34             ` Nick Roberts [this message]
2006-02-07 12:38           ` Andreas Schwab

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=17385.26294.743373.471169@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).