This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mpz support for gdbinit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]