mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
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
This commit is contained in:
@@ -684,7 +684,7 @@ fbsd_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
|
||||
const char *fname = lbasename (get_exec_file (0));
|
||||
std::string psargs = fname;
|
||||
|
||||
const char *infargs = get_inferior_args ();
|
||||
const char *infargs = current_inferior ()->args ();
|
||||
if (infargs != NULL)
|
||||
psargs = psargs + " " + infargs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user