From a7aba2668a7b392182e296392d8e19516e1a6ec5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 2 Oct 2020 10:46:38 -0400 Subject: gdb: remove arguments from inferior_created observable I noticed that non of the listeners of the inferior_created observable used either of the arguments. Remove them. This in turn allows removing the target parameter of post_create_inferior. Tested only by rebuilding. gdb/ChangeLog: * observable.h : Remove parameters. Update all listeners. * inferior.h (post_create_inferior): Remove target parameter. Update all callers. Change-Id: I8944cefdc4447ed5347dc927b75abf1e7a0e27e6 --- gdb/symfile-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/symfile-mem.c') diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index 78096fcbae1..5f212e10323 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -157,7 +157,7 @@ add_symbol_file_from_memory_command (const char *args, int from_tty) This function is called via the inferior_created observer. */ static void -add_vsyscall_page (struct target_ops *target, int from_tty) +add_vsyscall_page () { struct mem_range vsyscall_range; -- cgit v1.2.1