diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:37:32 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:07 -0700 |
commit | 2bfc0540a2dd04b011509c9cd8d0db695f7cc115 (patch) | |
tree | 14cfb0a291a9fa5b0bc74e9f069924a8bec35097 /gdb/target.c | |
parent | 7d178d6aa5a0f88080be7a0b7ebc03fc8b6262fc (diff) | |
download | gdb-2bfc0540a2dd04b011509c9cd8d0db695f7cc115.zip gdb-2bfc0540a2dd04b011509c9cd8d0db695f7cc115.tar.gz gdb-2bfc0540a2dd04b011509c9cd8d0db695f7cc115.tar.bz2 |
Add target_ops argument to to_supports_disable_randomization
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops)
<to_supports_disable_randomization>: Add argument.
* target.c (find_default_supports_disable_randomization): Add
argument.
(target_supports_disable_randomization): Add argument.
(find_default_supports_disable_randomization): Add 'self'
argument.
* remote.c (extended_remote_supports_disable_randomization): Add
'self' argument.
(remote_supports_disable_randomization): Add 'self' argument.
(extended_remote_create_inferior): Update.
* linux-nat.c (linux_nat_supports_disable_randomization): Add
'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c index f65f8be..26d1074 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3267,13 +3267,13 @@ target_info_proc (char *args, enum info_proc_what what) } static int -find_default_supports_disable_randomization (void) +find_default_supports_disable_randomization (struct target_ops *self) { struct target_ops *t; t = find_default_run_target (NULL); if (t && t->to_supports_disable_randomization) - return (t->to_supports_disable_randomization) (); + return (t->to_supports_disable_randomization) (t); return 0; } @@ -3284,7 +3284,7 @@ target_supports_disable_randomization (void) for (t = ¤t_target; t != NULL; t = t->beneath) if (t->to_supports_disable_randomization) - return t->to_supports_disable_randomization (); + return t->to_supports_disable_randomization (t); return 0; } |