This is the mail archive of the gdb@sourceware.org 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: define command


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


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