.gdbinit: +u, +pjstr
[nethome.git] / .gdbinit
index 613d134..8a01500 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -7,12 +7,21 @@ set history save on
 # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106814
 set complaints 0
 set record full insn-number-max 10000000
+define u
+       up
+end
+document u
+up
+end
 define javadump
        call _Jv_DeepDebug($arg0)
 end
 document javadump
 call _Jv_DeepDebug($arg0)
 end
+define pjstr
+       p *$arg0._body@$arg0._length
+end
 define pglist
        if (*("$arg1")=='@')
                set var $arg1=struct $arg1