diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:18:10 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:02 -0700 |
commit | 92155eeb1460f2963cbd5bf15323469123d968b5 (patch) | |
tree | b936e38e2ccee04363c2f00940b40af759c3d608 /gdb/target.c | |
parent | d6522a229d3baf2659c63a65b60947dff58ea200 (diff) | |
download | fsf-binutils-gdb-92155eeb1460f2963cbd5bf15323469123d968b5.zip fsf-binutils-gdb-92155eeb1460f2963cbd5bf15323469123d968b5.tar.gz fsf-binutils-gdb-92155eeb1460f2963cbd5bf15323469123d968b5.tar.bz2 |
convert to_traceframe_info
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_traceframe_info.
(return_null): Remove.
* target.h (struct target_ops) <to_traceframe_info>: Use
TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/target.c b/gdb/target.c index cd10f2f..2b4f2aa 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -66,8 +66,6 @@ static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *); static int return_zero (void); -static void *return_null (void); - void target_ignore (void); static void target_command (char *, int); @@ -712,7 +710,7 @@ update_current_target (void) /* Do not inherit to_set_permissions. */ /* Do not inherit to_static_tracepoint_marker_at. */ /* Do not inherit to_static_tracepoint_markers_by_strid. */ - INHERIT (to_traceframe_info, t); + /* Do not inherit to_traceframe_info. */ INHERIT (to_use_agent, t); INHERIT (to_can_use_agent, t); INHERIT (to_augmented_libraries_svr4_read, t); @@ -750,9 +748,6 @@ update_current_target (void) (void (*) (struct target_ops *, ptid_t)) target_ignore); current_target.to_read_description = NULL; - de_fault (to_traceframe_info, - (struct traceframe_info * (*) (struct target_ops *)) - return_null); de_fault (to_supports_evaluation_of_breakpoint_conditions, (int (*) (struct target_ops *)) return_zero); @@ -3478,12 +3473,6 @@ return_zero (void) return 0; } -static void * -return_null (void) -{ - return 0; -} - /* * Find the next target down the stack from the specified target. */ |