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

2019-11-15 Thread Konstantin Kharlamov
On Пт, ноя 15, 2019 at 00:17, Konstantin Kharlamov wrote: On 14.11.2019 23:50, Segher Boessenkool wrote: 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 a

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

2019-11-14 Thread Konstantin Kharlamov
On 14.11.2019 23:50, Segher Boessenkool wrote: 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 chan

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

2019-11-14 Thread Segher Boessenkool
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 > br

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

2019-11-14 Thread Konstantin Kharlamov
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