Re: [PATCH 4/8] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-04 Thread Philippe Mathieu-Daudé
On 4/9/23 07:54, Michael Tokarev wrote: 03.09.2023 07: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

Re: [PATCH 4/8] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-04 Thread Akihiko Odaki
On 2023/09/04 14:54, Michael Tokarev wrote: 03.09.2023 07: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

Re: [PATCH 4/8] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-03 Thread Michael Tokarev
03.09.2023 07: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

Re: [PATCH 4/8] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-03 Thread Philippe Mathieu-Daudé
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

[PATCH 4/8] hw/core/cpu: Return static value with gdb_arch_name()

2023-09-02 Thread Akihiko Odaki
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()