From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb: fix some inferior_created observer signatures
Date: Fri, 2 Oct 2020 15:23:10 -0400 [thread overview]
Message-ID: <20201002192310.2294928-1-simon.marchi@efficios.com> (raw)
I just noticed that in a7aba2668a7b ("gdb: remove arguments from
inferior_created observable"), I forgot to update
aix_thread_inferior_created and procfs_inferior_created, which are in
files I can't compile.
Remove the parameters from aix_thread_inferior_created. And simply
remove procfs_inferior_created, since it's empty anyway.
gdb/ChangeLog:
* aix-thread.c (aix_thread_inferior_created): Remove parameters.
* procfs.c (procfs_inferior_created): Remove.
(_initialize_procfs): Don't register procfs_inferior_created.
Change-Id: Ifc7def7c096332033b5d466d32cb873d1df18c2c
---
gdb/ChangeLog | 6 ++++++
gdb/aix-thread.c | 2 +-
gdb/procfs.c | 9 ---------
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 737091e390b9..ca7a0caae5c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-02 Simon Marchi <simon.marchi@efficios.com>
+
+ * aix-thread.c (aix_thread_inferior_created): Remove parameters.
+ * procfs.c (procfs_inferior_created): Remove.
+ (_initialize_procfs): Don't register procfs_inferior_created.
+
2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
* async-event.c (invoke_async_signal_handlers): Add debug
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index ed30df5f3f62..b4100a55ae95 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1015,7 +1015,7 @@ new_objfile (struct objfile *objfile)
/* Attach to process specified by ARGS. */
static void
-aix_thread_inferior_created (struct target_ops *ops, int from_tty)
+aix_thread_inferior_created ()
{
pd_enable ();
}
diff --git a/gdb/procfs.c b/gdb/procfs.c
index c017f4a15517..31f33fe9a2b4 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -2867,13 +2867,6 @@ procfs_target::create_inferior (const char *exec_file,
procfs_init_inferior (pid);
}
-/* An observer for the "inferior_created" event. */
-
-static void
-procfs_inferior_created (struct target_ops *ops, int from_tty)
-{
-}
-
/* Callback for update_thread_list. Calls "add_thread". */
static int
@@ -3470,8 +3463,6 @@ void _initialize_procfs ();
void
_initialize_procfs ()
{
- gdb::observers::inferior_created.attach (procfs_inferior_created);
-
add_com ("proc-trace-entry", no_class, proc_trace_sysentry_cmd,
_("Give a trace of entries into the syscall."));
add_com ("proc-trace-exit", no_class, proc_trace_sysexit_cmd,
--
2.26.2
reply other threads:[~2020-10-02 19:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201002192310.2294928-1-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).