This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3] gdbinit.in: allow to pass function argument explicitly


Hi!

On Thu, Nov 14, 2019 at 07:01:47PM +0300, Konstantin Kharlamov wrote:
> Generally, people expect functions to accept arguments directly. But
> ones defined in gdbinit did not use the argument, which may be confusing
> for newcomers. But we can't change behavior to use the argument without
> breaking existing users of the gdbinit. Let's fix this by adding a check
> for whether a user passed an argument, and either use it or go with
> older behavior.
> 
> 2019-11-14  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
> 
>         * gdbinit.in (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn,
>         ptn, pdd, prc, pi, pbm, pel, trt): Make use of $arg0 if a user passed it

(Lines in a changelog end in a dot).

I love this...  if it works :-)  How was it tested?  With what GDB versions?


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]