aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-10-22 13:28:12 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-10-22 13:28:19 -0400
commit4b4bb603fda8dca010c4fc18ae84f9df37b0bb8c (patch)
tree607e2ffe7b667a6098e5ce13c21e475ddd6c7daf
parent24f5300a537e0a8b31ec0391e45babf8a160ce56 (diff)
downloadfsf-binutils-gdb-4b4bb603fda8dca010c4fc18ae84f9df37b0bb8c.zip
fsf-binutils-gdb-4b4bb603fda8dca010c4fc18ae84f9df37b0bb8c.tar.gz
fsf-binutils-gdb-4b4bb603fda8dca010c4fc18ae84f9df37b0bb8c.tar.bz2
gdb: remove unused macros from target-debug.h
I noticed some clearly stale entries in target-debug.h (which contained references to VEC). I commented everything in target-debug.h and then uncommented things until it built again, it pointed out a few unused macros. Remove them. gdb/ChangeLog: * target-debug.h (target_debug_print_struct_target_ops_p): Remove. (target_debug_print_async_callback_ftype_p): Remove. (target_debug_print_struct_trace_state_variable_p): Remove. (target_debug_print_struct_traceframe_info_p): Remove. (target_debug_print_VEC__btrace_block_s__pp): Remove. (target_debug_print_enum_btrace_format): Remove. (target_debug_print_enum_info_proc_what): Remove. (target_debug_print_thread_info_pp): Remove. Change-Id: I7943d21ac6e78751fd7c65a45b345018623ac2f2
-rw-r--r--gdb/ChangeLog12
-rw-r--r--gdb/target-debug.h16
2 files changed, 12 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0319b9a..819f448 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * target-debug.h (target_debug_print_struct_target_ops_p):
+ Remove.
+ (target_debug_print_async_callback_ftype_p): Remove.
+ (target_debug_print_struct_trace_state_variable_p): Remove.
+ (target_debug_print_struct_traceframe_info_p): Remove.
+ (target_debug_print_VEC__btrace_block_s__pp): Remove.
+ (target_debug_print_enum_btrace_format): Remove.
+ (target_debug_print_enum_info_proc_what): Remove.
+ (target_debug_print_thread_info_pp): Remove.
+
2020-10-22 Simon Marchi <simon.marchi@efficios.com>
* target.h (struct target_ops) <make_corefile_notes>:
diff --git a/gdb/target-debug.h b/gdb/target-debug.h
index 12818da..c5abfd4 100644
--- a/gdb/target-debug.h
+++ b/gdb/target-debug.h
@@ -44,8 +44,6 @@
#define target_debug_do_print(E) \
fputs_unfiltered ((E), gdb_stdlog);
-#define target_debug_print_struct_target_ops_p(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_enum_target_object(X) \
target_debug_do_print (plongest (X))
#define target_debug_print_CORE_ADDR(X) \
@@ -108,8 +106,6 @@
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_target_section_table_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_async_callback_ftype_p(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_void_p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_find_memory_region_ftype(X) \
@@ -124,8 +120,6 @@
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_struct_bp_location_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_struct_trace_state_variable_p(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_const_trace_state_variable_r(X) \
target_debug_do_print (host_address_to_string (&X))
#define target_debug_print_struct_trace_status_p(X) \
@@ -140,18 +134,12 @@
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_static_tracepoint_marker_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_struct_traceframe_info_p(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_struct_btrace_target_info_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_VEC__btrace_block_s__pp(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_const_struct_frame_unwind_p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_struct_btrace_data_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_enum_btrace_format(X) \
- target_debug_do_print (plongest (X))
#define target_debug_print_enum_record_method(X) \
target_debug_do_print (plongest (X))
#define target_debug_print_const_struct_btrace_config_p(X) \
@@ -176,14 +164,10 @@
target_debug_do_print (host_address_to_string (inf))
#define target_debug_print_record_print_flags(X) \
target_debug_do_print (plongest (X))
-#define target_debug_print_enum_info_proc_what(X) \
- target_debug_do_print (plongest (X))
#define target_debug_print_thread_control_capabilities(X) \
target_debug_do_print (plongest (X))
#define target_debug_print_thread_info_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_thread_info_pp(X) \
- target_debug_do_print (host_address_to_string (X))
#define target_debug_print_std_string(X) \
target_debug_do_print ((X).c_str ())
#define target_debug_print_gdb_byte_vector(X) \