public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* mpz support for gdbinit
@ 2013-11-20  6:19 Mike Stump
  0 siblings, 0 replies; only message in thread
From: Mike Stump @ 2013-11-20  6:19 UTC (permalink / raw)
  To: gcc-patches@gcc.gnu.org Patches

Here is a little one that was useful in debugging during wide-int development, but isn't dependent upon wide-int.

Committed.


	* gdbinit.in: Add pmz to print out mpz values.

Index: gdbinit.in
===================================================================
--- gdbinit.in	(revision 205068)
+++ gdbinit.in	(working copy)
@@ -94,6 +94,15 @@ Print the expression that is $ in C synt
 Works only when an inferior is executing.
 end
 
+define pmz
+set mpz_out_str(stderr, 10, $)
+end
+
+document pmz
+Print the mpz value that is $
+Works only when an inferior is executing.
+end
+
 define ptc
 output (enum tree_code) $.common.code
 echo \n

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-20  0:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20  6:19 mpz support for gdbinit Mike Stump

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).