This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 11/12] entryval: "@entry" in input expressions
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> it would be good if one can also:
>> (gdb) print refparam@entry
>> $1 = 5
Eli> Again, why not just
Eli> (gdb) print refparam
Eli> ?
Ordinarily one wants the current value of the variable, not the
variable's entry value.
>> +Breakpoint 1, d (i=30) at gdb.base/entry-value.c:29
>> +29 i++;
>> +(gdb) next
>> +30 e (i);
>> +(gdb) print i
>> +$1 = 31
>> +(gdb) print i@@entry
>> +$2 = 30
Eli> Which doesn't add any information beyond what is already shown in the
Eli> first line. What's the point?
You can use 'i@entry' in a breakpoint condition.
Tom