On Sat, 2020-01-04 at 16:35 +0300, Alexander Monakov wrote:
> I'm posting an updated patch for GCC gdbinit originally proposed by
> The patch amends debugging shorthands such as 'pr' to accept an explicit
> argument, in addition to taking an implicit argument from $ as today. In other
> pr x
> will be accepted to call 'debug_rtx (x)' just like
> p x
> does today.
> I've noticed Konstantin's patch left documentation bits inconsistent with the
> new implementation, so I amended them manually and introduced a new
> 'help-gcc-hooks' command with the index and some general info. I also fixed a
> leftover '$' remaining in 'prc' command.
> Okay to apply?
> * gdbinit.in (help-gcc-hooks): New command.
> (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
> pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update