This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 5/7] [Ada] Remove `from_tty' parameter from ada-tasks.c:info_tasks
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Fri, 16 Sep 2011 12:15:08 -0700
- Subject: [PATCH 5/7] [Ada] Remove `from_tty' parameter from ada-tasks.c:info_tasks
- References: <1316200510-14048-1-git-send-email-brobecker@adacore.com>
This parameter is unused, and probably will never be useful.
gdb/ChangeLog:
* ada-tasks.c (info_tasks): Delete parameter `from_tty'.
---
gdb/ChangeLog | 4 ++++
gdb/ada-tasks.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fa48c01..e774b03 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2011-09-16 Joel Brobecker <brobecker@adacore.com>
+ * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
+
+2011-09-16 Joel Brobecker <brobecker@adacore.com>
+
* ada-lang.h (ada_build_task_list): Remove parameter
`warn_if_null'.
* ada-tasks.c (ada_build_task_list): Remove parameter
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 575080a..2bad559 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -982,7 +982,7 @@ short_task_info (int taskno, struct inferior *inf)
/* FIXME: Shouldn't we be using ui_out??? */
static void
-info_tasks (int from_tty, struct inferior *inf)
+info_tasks (struct inferior *inf)
{
struct ada_tasks_inferior_data *data = get_ada_tasks_inferior_data (inf);
int taskno;
@@ -1094,7 +1094,7 @@ info_tasks_command (char *arg, int from_tty)
}
if (arg == NULL || *arg == '\0')
- info_tasks (from_tty, current_inferior ());
+ info_tasks (current_inferior ());
else
info_task (arg, from_tty, current_inferior ());
}
--
1.7.1