This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: small changes of gdbinit.in


On Fri, Jan 25, 2008 at 10:18:01AM -0700, Tom Tromey wrote:
> >>>>> "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

Good idea!  If anyone wants to patch the commands, that's how it should
be done, I think.

> 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 :)

But since people can have it both ways, why not?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]