diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-18 22:02:47 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-07-23 15:38:54 -0400 |
commit | e51695253e5594ea7fda3c52aa9126ee4f9e9fc2 (patch) | |
tree | e5b3aaef55d3f3f35c132f135c844587141c0a9e /gdb/procfs.c | |
parent | a69e37dc2b1dbb84a1ba924532cbaede648b69e8 (diff) | |
download | gdb-e51695253e5594ea7fda3c52aa9126ee4f9e9fc2.zip gdb-e51695253e5594ea7fda3c52aa9126ee4f9e9fc2.tar.gz gdb-e51695253e5594ea7fda3c52aa9126ee4f9e9fc2.tar.bz2 |
gdb: add setter/getter for inferior arguments
Add args/set_args to the inferior class, remove the set_inferior_args
and get_inferior_args functions, that would just be wrappers around
them.
Change-Id: If87d52f3402ce08be26c32897ae8915d9f6d1ea3
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 8343865..0641efd 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3613,7 +3613,7 @@ procfs_target::make_corefile_notes (bfd *obfd, int *note_size) strncpy (psargs, get_exec_file (0), sizeof (psargs)); psargs[sizeof (psargs) - 1] = 0; - inf_args = get_inferior_args (); + inf_args = current_inferior ()->args (); if (inf_args && *inf_args && (strlen (inf_args) < ((int) sizeof (psargs) - (int) strlen (psargs)))) |