This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: small changes of gdbinit.in
>>>>> "Joe" == Joe Buck <Joe.Buck@synopsys.COM> writes:
Joe> On the other hand, old-timers are used to the commands being the way
Joe> they are. So I guess that a command that takes a proper argument
Joe> should have a different name.
You can have it both ways, somewhat:
define pt
if $argc == 0
set debug_tree ($)
else
set debug_tree ($arg0)
end
end
Personally I'd just change to purely using $arg0 and have people
adjust their habits. But then, I've used my own argument-taking pt
for years :)
Tom