On 3/9/23 06:30, Akihiko Odaki wrote:
All implementations of gdb_arch_name() returns dynamic duplicates of
static strings. It's also unlikely that there will be an implementation
of gdb_arch_name() that returns a truly dynamic value due to the nature
of the function returning a well-known identifiers. Qualify the value
gdb_arch_name() with const and make all of its implementations return
static strings.

Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
---
  include/hw/core/cpu.h  | 2 +-
  target/ppc/internal.h  | 2 +-
  gdbstub/gdbstub.c      | 4 +---
  target/arm/cpu.c       | 6 +++---
  target/arm/cpu64.c     | 4 ++--
  target/i386/cpu.c      | 6 +++---
  target/loongarch/cpu.c | 4 ++--
  target/ppc/gdbstub.c   | 6 +++---
  target/riscv/cpu.c     | 6 +++---
  target/s390x/cpu.c     | 4 ++--
  target/tricore/cpu.c   | 4 ++--
  11 files changed, 23 insertions(+), 25 deletions(-)

Nice.

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to