This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
evaluate more complex expressions using gdb
- From: Bram Kuijper <a dot l dot w dot kuijper at rug dot nl>
- To: gdb at sourceware dot org
- Date: Wed, 27 Jun 2007 12:20:09 +0200
- Subject: evaluate more complex expressions using gdb
Hi all,
again a newbie question: can I also evaluate the result of subtractions,
additions using the display command? Like some pointer arithmetics:
display pointer1 - start_pointer
If I do this, gdb gives me the following error:
Disabling display 6 to avoid infinite recursion.
6: pointer1 - start_pointer = One of the arguments you tried to pass to
operator- could not be converted to what the function wants.
Is there any way to to this using gdb?
thanks,
Bram