aboutsummaryrefslogtreecommitdiff
path: root/depcomp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-09-05 11:50:48 +0000
committerPedro Alves <palves@redhat.com>2013-09-05 11:50:48 +0000
commit6eed16788b02fa84b88039b43810544de7d02e39 (patch)
treeafd1b504d22351f8dcf3ef7c37b421dba5ae9f33 /depcomp
parent8eb6bda23e48b9651f7658fc6deab4712f229d55 (diff)
downloadgdb-6eed16788b02fa84b88039b43810544de7d02e39.zip
gdb-6eed16788b02fa84b88039b43810544de7d02e39.tar.gz
gdb-6eed16788b02fa84b88039b43810544de7d02e39.tar.bz2
[TUI] Rewrite register-changed decision bits.
I stumbled on the TUI's register-changed decision code before (used to decided whether the register should be highlighted in the register window), for it is trying to compare all the different possible states and contents or previous/current register contents, and as such may need updating whenever the value machinery changes to have more state. It's just much simpler and more future proof to compare the previous/current printable representation instead. The bit in tui_register_format that returns early if the register has no name gets a bit in the way of the new prototype (what to return in that case? NULL, empty string, etc.?). Fortunately, that check isn't really necessary. All the callers will have already skipped unnamed registers. gdb/ 2013-09-05 Pedro Alves <palves@redhat.com> * tui/tui-regs.c (tui_register_format): Don't look at the register's name here. Return string representing register value instead of storing it in the data element. (tui_get_register): Compare register string representations instead of register value states and contents.
Diffstat (limited to 'depcomp')
0 files changed, 0 insertions, 0 deletions