coredump:add const to memory region struct ptr

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2024-07-04 18:30:11 +08:00 committed by Xiang Xiao
parent 8bafb6520a
commit 60796a7063
8 changed files with 12 additions and 13 deletions

View file

@ -45,7 +45,7 @@
*
****************************************************************************/
int core_dump(FAR struct memory_region_s *regions,
int core_dump(FAR const struct memory_region_s *regions,
FAR struct lib_outstream_s *stream,
pid_t pid)
{

View file

@ -70,7 +70,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
FAR const struct symtab_s *exports,
int nexports);
#ifdef CONFIG_ELF_COREDUMP
static int elf_dumpbinary(FAR struct memory_region_s *regions,
static int elf_dumpbinary(FAR const struct memory_region_s *regions,
FAR struct lib_outstream_s *stream,
pid_t pid);
#endif
@ -382,7 +382,7 @@ errout_with_init:
****************************************************************************/
#ifdef CONFIG_ELF_COREDUMP
static int elf_dumpbinary(FAR struct memory_region_s *regions,
static int elf_dumpbinary(FAR const struct memory_region_s *regions,
FAR struct lib_outstream_s *stream,
pid_t pid)
{