aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:21:17 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:27 -0700
commit9dd130a0f09e436482e7787fe1173ae06e39ade7 (patch)
tree018791eb0864229caf5b3936fa1a58ae99769f00 /gdb
parent46917d26c8a2aa8054bbed410c432eadf355d172 (diff)
downloadgdb-9dd130a0f09e436482e7787fe1173ae06e39ade7.zip
gdb-9dd130a0f09e436482e7787fe1173ae06e39ade7.tar.gz
gdb-9dd130a0f09e436482e7787fe1173ae06e39ade7.tar.bz2
introduce remote_load
I used a refactoring script to add target_ops arguments to all the target methods. In order to make this script work a little better, this patch adds a new "remote_load" function; this eliminates the need to later change the signature of generic_load. 2014-02-19 Tom Tromey <tromey@redhat.com> * remote.c (remote_load): New function. (init_remote_ops): Use it.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e80562d..83910b0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * remote.c (remote_load): New function.
+ (init_remote_ops): Use it.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* common/linux-btrace.c (linux_supports_btrace): Add "ops"
argument.
* common/linux-btrace.h (linux_supports_btrace): Update.
diff --git a/gdb/remote.c b/gdb/remote.c
index e5bddb7..9e0045a 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -11345,6 +11345,14 @@ remote_augmented_libraries_svr4_read (void)
return rs->augmented_libraries_svr4_read;
}
+/* Implementation of to_load. */
+
+static void
+remote_load (char *name, int from_tty)
+{
+ generic_load (name, from_tty);
+}
+
static void
init_remote_ops (void)
{
@@ -11378,7 +11386,7 @@ Specify the serial device it is connected to\n\
remote_ops.to_insert_watchpoint = remote_insert_watchpoint;
remote_ops.to_remove_watchpoint = remote_remove_watchpoint;
remote_ops.to_kill = remote_kill;
- remote_ops.to_load = generic_load;
+ remote_ops.to_load = remote_load;
remote_ops.to_mourn_inferior = remote_mourn;
remote_ops.to_pass_signals = remote_pass_signals;
remote_ops.to_program_signals = remote_program_signals;