This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [Patch] Fix for -var-update to use natural format to compare
> This is assuming the frontend only displays a single value.
> In DSF, we (sometimes) display all values at once. Can be nice for the user.
>
> > why do you want to keep track of the value in
> > all formats? And if you're actually displaying them all
> > simultaneously to the user, why shouldn't they be independent varobjs?
>
> Independent varObjects would work. However every time the program stops
> the frontend will need to issue a var-update on five objects instead of one,
> and what is worse is that GDB will need to read the memory from the target
> five times instead of once. This is less efficient than the frontend
> forcing GDB to use natural format (see below.)
You say it "Can be nice for the user." but you haven't really answered the
first question:
why do you want to keep track of the value in all formats?
Why, for example, would a user want to see the value of a double as a
decimal? It just seems to be a misleading thing to do.
--
Nick http://www.inet.net.nz/~nickrob