aboutsummaryrefslogtreecommitdiff
path: root/gdb/gcore.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@arm.com>2022-11-17 10:19:30 +0000
committerLuis Machado <luis.machado@arm.com>2022-11-23 09:45:48 +0000
commit8181f0045df765a7f28db745f4a8bd3c5a1da82d (patch)
treef4299e3f63776fa3e51f88f0458102a99a54adb6 /gdb/gcore.c
parent829b6b3736d972f5fbacda09c82b31802d3b594c (diff)
downloadgdb-8181f0045df765a7f28db745f4a8bd3c5a1da82d.zip
gdb-8181f0045df765a7f28db745f4a8bd3c5a1da82d.tar.gz
gdb-8181f0045df765a7f28db745f4a8bd3c5a1da82d.tar.bz2
Document the memory_tagged argument for memory region callbacks
There were no comments in some instances (gdb/defs.h, gdb/core.c and gdb/linux-tdep.c), so address that by adding comments where those are missing.
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r--gdb/gcore.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c
index ede7853..672bdf7 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -372,8 +372,12 @@ make_output_phdrs (bfd *obfd, asection *osec)
bfd_record_phdr (obfd, p_type, 1, p_flags, 0, 0, 0, 0, 1, &osec);
}
-/* find_memory_region_ftype implementation. DATA is 'bfd *' for the core file
- GDB is creating. */
+/* find_memory_region_ftype implementation.
+
+ MEMORY_TAGGED is true if the memory region contains memory tags, false
+ otherwise.
+
+ DATA is 'bfd *' for the core file GDB is creating. */
static int
gcore_create_callback (CORE_ADDR vaddr, unsigned long size, int read,
@@ -462,6 +466,10 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size, int read,
}
/* gdbarch_find_memory_region callback for creating a memory tag section.
+
+ MEMORY_TAGGED is true if the memory region contains memory tags, false
+ otherwise.
+
DATA is 'bfd *' for the core file GDB is creating. */
static int