This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
mpz support for gdbinit
- From: Mike Stump <mikestump at comcast dot net>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 19 Nov 2013 16:52:30 -0800
- Subject: mpz support for gdbinit
- Authentication-results: sourceware.org; auth=none
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