diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:46:13 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:45 -0700 |
commit | 39c49f83b643618704b1a89e0b14680090a17f97 (patch) | |
tree | 819ae82be1fb0a8d0fa409e8718f5436992b8609 /gdb/amd64-linux-nat.c | |
parent | 1777056d68eff4d68e0e00314d6050abaf9dff5f (diff) | |
download | gdb-39c49f83b643618704b1a89e0b14680090a17f97.zip gdb-39c49f83b643618704b1a89e0b14680090a17f97.tar.gz gdb-39c49f83b643618704b1a89e0b14680090a17f97.tar.bz2 |
Add target_ops argument to to_read_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_read_btrace>: Add argument.
* target.c (struct target_ops) <to_read_btrace>: Add argument.
* remote.c (struct target_ops) <to_read_btrace>: Add 'self'
argument.
* amd64-linux-nat.c (amd64_linux_read_btrace): New function.
(_initialize_amd64_linux_nat): Use it.
* i386-linux-nat.c (i386_linux_read_btrace): New function.
(_initialize_i386_linux_nat): Use it.
Diffstat (limited to 'gdb/amd64-linux-nat.c')
-rw-r--r-- | gdb/amd64-linux-nat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index d7256c3..b7b889b 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -1191,6 +1191,15 @@ amd64_linux_teardown_btrace (struct target_ops *self, linux_disable_btrace (tinfo); } +static enum btrace_error +amd64_linux_read_btrace (struct target_ops *self, + VEC (btrace_block_s) **data, + struct btrace_target_info *btinfo, + enum btrace_read_type type) +{ + return linux_read_btrace (data, btinfo, type); +} + /* Provide a prototype to silence -Wmissing-prototypes. */ void _initialize_amd64_linux_nat (void); @@ -1234,7 +1243,7 @@ _initialize_amd64_linux_nat (void) t->to_enable_btrace = amd64_linux_enable_btrace; t->to_disable_btrace = amd64_linux_disable_btrace; t->to_teardown_btrace = amd64_linux_teardown_btrace; - t->to_read_btrace = linux_read_btrace; + t->to_read_btrace = amd64_linux_read_btrace; /* Register the target. */ linux_nat_add_target (t); |