[PATCH v2 2/2] gdbinit.in: allow to pass function argument explicitly
Alexander Monakov
amonakov@ispras.ru
Thu Nov 14 13:14:00 GMT 2019
On Thu, 14 Nov 2019, Konstantin Kharlamov wrote:
> Thanks! Unfortunately AFAIK ternary expressions are broken in gdb
> https://sourceware.org/bugzilla/show_bug.cgi?id=22466 :c
Indeed, I didn't notice that. But it still would be nice to avoid duplicating
the commands over and over again. Can we use something like
define pp
if $argc
p $arg0
end
call debug ($)
end
this way
pp something
is simply equivalent to what people already use:
p something
pp
Alexander
More information about the Gcc-patches
mailing list