small changes of gdbinit.in

Tom Tromey tromey@redhat.com
Fri Jan 25 18:23:00 GMT 2008


>>>>> "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



More information about the Gcc mailing list