diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:34:15 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:10 -0700 |
commit | 6c7e5e5cdc78f2930423b87d76006e067749e6ba (patch) | |
tree | 79a68cd33331ac1221fdd6e0b87c8839e7f7dfbc /gdb/target.c | |
parent | 8b1c364c146fc5a73311a434f8f6eecf3e83685b (diff) | |
download | gdb-6c7e5e5cdc78f2930423b87d76006e067749e6ba.zip gdb-6c7e5e5cdc78f2930423b87d76006e067749e6ba.tar.gz gdb-6c7e5e5cdc78f2930423b87d76006e067749e6ba.tar.bz2 |
convert to_masked_watch_num_registers
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_masked_watch_num_registers): Unconditionally
delegate.
* target.h (struct target_ops) <to_masked_watch_num_registers>:
Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/target.c b/gdb/target.c index 6f1c1bc..8306906 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3870,13 +3870,8 @@ target_remove_mask_watchpoint (%s, %s, %d) = %d\n", int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - if (t->to_masked_watch_num_registers != NULL) - return t->to_masked_watch_num_registers (t, addr, mask); - - return -1; + return current_target.to_masked_watch_num_registers (¤t_target, + addr, mask); } /* The documentation for this function is in its prototype declaration |