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

Reply via email to