gdb/python: Use reference not pointer in py-registers.c
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 22 Jul 2020 13:57:55 +0000 (14:57 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 22 Jul 2020 15:09:16 +0000 (16:09 +0100)
commita67a1c41fe4ab9bd8b1dcb7d5f68e080a0e96dfe
tree42b836fae3e703bbc10120fdadd46c6e15eeca19
parentdf16e041deafa1d7fe7d8e65c02213b885c60a8e
gdb/python: Use reference not pointer in py-registers.c

Pedro's review comments arrived after I'd already committed this
change:

  commit f7306dac19c502232f766c3881313857915f330d
  Date:   Tue Jul 7 15:00:30 2020 +0100

      gdb/python: Reuse gdb.RegisterDescriptor objects where possible

See:

  https://sourceware.org/pipermail/gdb-patches/2020-July/170726.html

There should be no user visible changes after this commit.

gdb/ChangeLog:

* python/py-registers.c (gdbpy_register_object_data_init): Remove
redundant local variable.
(gdbpy_get_register_descriptor): Extract descriptor vector as a
reference, not pointer, update code accordingly.
gdb/ChangeLog
gdb/python/py-registers.c