gdb: remove unnecessary lookup_cmd when deprecating commands
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 May 2021 17:59:00 +0000 (13:59 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 May 2021 18:00:07 +0000 (14:00 -0400)
commit9f26053690299e3a5d295d78c4ceeaf840344f0b
tree27cc770378c9ae45c0c723f2401b24af26079550
parentaf7f8f52dd6024951577cfc328c318fdd4089623
gdb: remove unnecessary lookup_cmd when deprecating commands

Remove a few instances where we look up a command by name, but could
just use the return value of a previous "add command" function call
instead.

gdb/ChangeLog:

* mi/mi-main.c (_initialize_mi_main):
* python/py-auto-load.c (gdbpy_initialize_auto_load):
* remote.c (_initialize_remote):

Change-Id: I6d06f9ca636e340c88c1064ae870483ad392607d
gdb/ChangeLog
gdb/mi/mi-main.c
gdb/python/py-auto-load.c
gdb/remote.c