From: Grégoire Jadi Date: Tue, 16 Jul 2013 17:41:08 +0000 (+0200) Subject: * src/.gdbinit (xxwidget): Add an optional parameter. X-Git-Tag: emacs-25.0.90~2875^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0f6659e1fccfdb26cdca5cc6ea00dddbe57ee09;p=emacs.git * src/.gdbinit (xxwidget): Add an optional parameter. --- diff --git a/src/.gdbinit b/src/.gdbinit index 2668772c2ed..50f4b11238a 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -993,7 +993,11 @@ Print $ as a scrollbar pointer. end define xxwidget - xgetptr $ + if $argc == 1 + xgetptr $arg0 + else + xgetptr $ + end set $xw = (struct xwidget *) $ptr print $xw printf " Type: "