[PATCH v2 2/2] gdbinit.in: allow to pass function argument explicitly

Alexander Monakov amonakov@ispras.ru
Thu Nov 14 14:39:00 GMT 2019


On Thu, 14 Nov 2019, Konstantin Kharlamov wrote:

> I also named `dbgarg` as `debug_arg` because I figured I confuse whether it
> was `gdbarg` or `gdbarg` :D

It should begin with a dollar ($debug_arg), otherwise GDB will attempt to locate
and use a variable named 'debug_arg' in the program being debugged.

In any case, I feel we should avoid adding a dependency on GDB-Python here.

Alexander



More information about the Gcc-patches mailing list