Setting a variable is very slow.

Robert Dewar dewar@adacore.com
Sat Apr 21 12:50:00 GMT 2007


jagorak wrote:

> *More  importantly*:
> ===> Is there any way to make the assignments work faster? <===

First step is you should do some profiling work to see if you can
find out what is taking the time in gdb
> 
> E.g.  by  telling  gdb  to cache the address of a symbol (variable) so
> that everytime the symbol is being set gdb does not have to go through
> the  symbol  table  to  obtain  the address (in case that would be the
> reason why assignments are very slow).

That's a good idea, would be good to work on this improvement
to gdb. By all means investigate!



More information about the Gdb mailing list