define command

Andrew STUBBS andrew.stubbs@st.com
Mon Jul 24 19:26:00 GMT 2006


Efim Monyak wrote:
> sorry have clicked on reply and don't checked the address.
> 
> Is where a possibility to implement a similar functionality for GDB 
> 6.4.0 with no buggy features?

Assuming you only source the script with the define once:

set $__example_counter = 0
define example
   set $__example_counter += 1
end



More information about the Gdb mailing list