aboutsummaryrefslogtreecommitdiff
path: root/gdb/observable.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-10-02 10:46:38 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-10-02 10:46:38 -0400
commita7aba2668a7b392182e296392d8e19516e1a6ec5 (patch)
tree90bf9ad0ff14856658d698c150dbb479350b7918 /gdb/observable.h
parent3ee6f75d058c0747368e0631735e279174b1f918 (diff)
downloadbinutils-a7aba2668a7b392182e296392d8e19516e1a6ec5.zip
binutils-a7aba2668a7b392182e296392d8e19516e1a6ec5.tar.gz
binutils-a7aba2668a7b392182e296392d8e19516e1a6ec5.tar.bz2
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 <inferior_created>: Remove parameters. Update all listeners. * inferior.h (post_create_inferior): Remove target parameter. Update all callers. Change-Id: I8944cefdc4447ed5347dc927b75abf1e7a0e27e6
Diffstat (limited to 'gdb/observable.h')
-rw-r--r--gdb/observable.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/observable.h b/gdb/observable.h
index da0a9b1..d9d0f14 100644
--- a/gdb/observable.h
+++ b/gdb/observable.h
@@ -87,8 +87,7 @@ extern observable<> executable_changed;
instruction. For 'attach' and 'core', gdb calls this observer
immediately after connecting to the inferior, and before any
information on the inferior has been printed. */
-extern observable<struct target_ops */* target */,
- int /* from_tty */> inferior_created;
+extern observable<> inferior_created;
/* The status of process record for inferior inferior in gdb has
changed. The process record is started if STARTED is true, and