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: Setting a variable is very slow.


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!


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