gdb: move cmd_list_element::prefixname to cli/cli-decode.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 May 2021 18:00:48 +0000 (14:00 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 May 2021 18:00:48 +0000 (14:00 -0400)
commit413b49c2b6619a7ce16322c7f94079205031cda4
tree0784421d737876d900e539b9b5e3acca4f77b933
parente683cb412046b40085505f42dd141f542661a6ae
gdb: move cmd_list_element::prefixname to cli/cli-decode.c

I don't think this method really benefits from being implemented in the
header file, especially because it's recursive, it can't be inlined.
Move it to the source file, so it's no re-compiled by every CU
including cli/cli-decode.h.

I also noticed this method could be const, make it so.

gdb/ChangeLog:

* cli/cli-decode.h (prefixname): Make const, move implementation
to cli/cli-decode.c.
* cli/cli-decode.c (cmd_list_element::prefixname): New.

Change-Id: I1597cace98d9a4ba71f51f1f495e73cc07b5dcf3
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
This page took 0.0274 seconds and 4 git commands to generate.