* define command
@ 2006-07-22 20:02 Efim Monyak
2006-07-22 20:11 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Efim Monyak @ 2006-07-22 20:02 UTC (permalink / raw)
To: gdb
Hi all,
is where a possibility to define one counter or variable in the define
command (user defined command).
I need to recognize is this command called first time or no. It is not
possible for me to use arguments.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: define command
2006-07-22 20:02 define command Efim Monyak
@ 2006-07-22 20:11 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-07-22 20:11 UTC (permalink / raw)
To: Efim Monyak; +Cc: gdb
On Fri, Jul 21, 2006 at 06:13:52PM +0200, Efim Monyak wrote:
> Hi all,
>
> is where a possibility to define one counter or variable in the define
> command (user defined command).
> I need to recognize is this command called first time or no. It is not
> possible for me to use arguments.
Just pick an unobtrusive name for the variable, and use the new in GDB
6.5 "init-if-undefined" command.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* define command
@ 2006-07-24 18:17 Efim Monyak
2006-07-24 19:26 ` Andrew STUBBS
0 siblings, 1 reply; 5+ messages in thread
From: Efim Monyak @ 2006-07-24 18:17 UTC (permalink / raw)
To: gdb
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: define command
2006-07-24 18:17 Efim Monyak
@ 2006-07-24 19:26 ` Andrew STUBBS
2006-07-25 6:45 ` Efim Monyak
0 siblings, 1 reply; 5+ messages in thread
From: Andrew STUBBS @ 2006-07-24 19:26 UTC (permalink / raw)
To: Efim Monyak; +Cc: gdb
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: define command
2006-07-24 19:26 ` Andrew STUBBS
@ 2006-07-25 6:45 ` Efim Monyak
0 siblings, 0 replies; 5+ messages in thread
From: Efim Monyak @ 2006-07-25 6:45 UTC (permalink / raw)
To: Andrew STUBBS; +Cc: gdb
Andrew STUBBS schrieb:
> 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
>
I need evaluate this value also, I must recognize is the "example"
function called first
time or no. But it is not possible to use the argument.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-25 6:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-22 20:02 define command Efim Monyak
2006-07-22 20:11 ` Daniel Jacobowitz
2006-07-24 18:17 Efim Monyak
2006-07-24 19:26 ` Andrew STUBBS
2006-07-25 6:45 ` Efim Monyak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox