summaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 503ef24e301..73cabfebc36 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -94,6 +94,15 @@ Print the expression that is $ in C syntax.
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