This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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: Redefining built-in commands.


On Thu, 30 May 2002, Don Howard wrote:

> 
> 
> I've run across a bug involving redefinition of built-in commands:
> 
> If the command has an alias, the alias is not redefined. Instead, the
> alias is left in an inconsistent state and causes a crash when invoked.
> 
> Should gdb allow users to redefine built-in commands?   If so, should the 
> orignial alias continue to behave like the original built-in, or should 
> it's behavior be modified also?
> 


An example:

(gdb) define next
Really redefine built-in command "next"? (y or n) y
Type commands for definition of "next".
End with a line saying just "end".
>echo A silly example - redefine next\n
>end
(gdb) next
A silly example - redefine next
(gdb) n
Segmentation fault


-- 
dhoward@redhat.com
gdb engineering



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