aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-10-11 20:53:39 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-10-11 21:08:19 -0400
commit1639fab33b5932e1a5e88e29273996f70047da85 (patch)
treec4ba79eba9378e133522c9aa06a2940a32960e21 /gdb/auxv.c
parent8652404e813a895dfebe8591b30e90328b6e6898 (diff)
downloadgdb-1639fab33b5932e1a5e88e29273996f70047da85.zip
gdb-1639fab33b5932e1a5e88e29273996f70047da85.tar.gz
gdb-1639fab33b5932e1a5e88e29273996f70047da85.tar.bz2
gdb: rename target_read_auxv(target_ops *) to target_read_auxv_raw
Having two overloads of target_read_auxv that don't have the same goals is confusing. Rename the one that reads from an explicit target_ops to target_read_auxv_raw. Also, it occured to me that the non-raw version could use the raw version, that reduces duplication a bit. Change-Id: I28e5f7cecbfcacd0174d4686efb3e4a23b4ad491
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 5853437..51723f9 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -363,8 +363,7 @@ target_read_auxv ()
if (info == nullptr)
{
info = auxv_inferior_data.emplace (inf);
- info->data = target_read_alloc (inf->top_target (), TARGET_OBJECT_AUXV,
- nullptr);
+ info->data = target_read_auxv_raw (inf->top_target ());
}
return info->data;
@@ -373,7 +372,7 @@ target_read_auxv ()
/* See auxv.h. */
gdb::optional<gdb::byte_vector>
-target_read_auxv (target_ops *ops)
+target_read_auxv_raw (target_ops *ops)
{
return target_read_alloc (ops, TARGET_OBJECT_AUXV, NULL);
}