aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-07-08 08:55:20 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2020-07-08 08:55:39 -0700
commitd1076c4151af8e8d4a343906d2ed1e26cb7809eb (patch)
tree8e5fabe4fb70062d0b691a8fea20b37c71465d01 /gdb/fbsd-nat.c
parent15f3b07769c44d88a5015bd166c14a6cddc6c46a (diff)
downloadfsf-binutils-gdb-d1076c4151af8e8d4a343906d2ed1e26cb7809eb.zip
fsf-binutils-gdb-d1076c4151af8e8d4a343906d2ed1e26cb7809eb.tar.gz
fsf-binutils-gdb-d1076c4151af8e8d4a343906d2ed1e26cb7809eb.tar.bz2
Rename the 'obfd' argument to fbsd_nat_target::find_memory_regions.
The argument is passed as a generic cookie value to the supplied callback and is not necessarily a pointer to a bfd. gdb/ChangeLog: * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' argument to 'data'.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 1d189a2..a63ad2a 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -86,12 +86,12 @@ fbsd_nat_target::pid_to_exec_file (int pid)
#ifdef HAVE_KINFO_GETVMMAP
/* Iterate over all the memory regions in the current inferior,
- calling FUNC for each memory region. OBFD is passed as the last
+ calling FUNC for each memory region. DATA is passed as the last
argument to FUNC. */
int
fbsd_nat_target::find_memory_regions (find_memory_region_ftype func,
- void *obfd)
+ void *data)
{
pid_t pid = inferior_ptid.pid ();
struct kinfo_vmentry *kve;
@@ -133,7 +133,7 @@ fbsd_nat_target::find_memory_regions (find_memory_region_ftype func,
Pass MODIFIED as true, we do not know the real modification state. */
func (kve->kve_start, size, kve->kve_protection & KVME_PROT_READ,
kve->kve_protection & KVME_PROT_WRITE,
- kve->kve_protection & KVME_PROT_EXEC, 1, obfd);
+ kve->kve_protection & KVME_PROT_EXEC, 1, data);
}
return 0;
}
@@ -160,12 +160,12 @@ fbsd_read_mapping (FILE *mapfile, unsigned long *start, unsigned long *end,
}
/* Iterate over all the memory regions in the current inferior,
- calling FUNC for each memory region. OBFD is passed as the last
+ calling FUNC for each memory region. DATA is passed as the last
argument to FUNC. */
int
fbsd_nat_target::find_memory_regions (find_memory_region_ftype func,
- void *obfd)
+ void *data)
{
pid_t pid = inferior_ptid.pid ();
unsigned long start, end, size;
@@ -202,7 +202,7 @@ fbsd_nat_target::find_memory_regions (find_memory_region_ftype func,
/* Invoke the callback function to create the corefile segment.
Pass MODIFIED as true, we do not know the real modification state. */
- func (start, size, read, write, exec, 1, obfd);
+ func (start, size, read, write, exec, 1, data);
}
return 0;