diff options
author | Pedro Alves <palves@redhat.com> | 2018-05-03 00:37:26 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-05-03 00:51:30 +0100 |
commit | 57810aa7e8032c598897454daea14ed17df0f89d (patch) | |
tree | cd8e28930fdee347b23bb33773268f66444dca15 /gdb/target-delegates.c | |
parent | ad6a4e2dd69f9d343864181b638e166ff1458861 (diff) | |
download | gdb-57810aa7e8032c598897454daea14ed17df0f89d.zip gdb-57810aa7e8032c598897454daea14ed17df0f89d.tar.gz gdb-57810aa7e8032c598897454daea14ed17df0f89d.tar.bz2 |
target_ops: Use bool throughout
After the previous target_ops/C++ patches are all squashed and merged,
this one can go in separately.
This patch adjusts all the target methods to return bool instead of int
when they're returning a boolean.
gdb/ChangeLog:
2018-05-02 Pedro Alves <palves@redhat.com>
* target.h (target_ops)
<stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
stopped_by_watchpoint, have_continuable_watchpoint,
stopped_data_address, watchpoint_addr_within_range,
can_accel_watchpoint_condition, can_run, thread_alive,
has_all_memory, has_memory, has_stack, has_registers,
has_execution, can_async_p, is_async_p, supports_non_stop,
always_non_stop_p, can_execute_reverse, supports_multi_process,
supports_enable_disable_tracepoint,
supports_disable_randomization, supports_string_tracing,
supports_evaluation_of_breakpoint_conditions,
can_run_breakpoint_commands, filesystem_is_local,
can_download_tracepoint, get_trace_state_variable_value,
set_trace_notes, get_tib_address, use_agent, can_use_agent,
record_is_replaying, record_will_replay,
augmented_libraries_svr4_read>: Adjust to return bool.
* aarch64-linux-nat.c: All implementations adjusted.
* aix-thread.c: All implementations adjusted.
* arm-linux-nat.c: All implementations adjusted.
* breakpoint.c: All implementations adjusted.
* bsd-kvm.c: All implementations adjusted.
* bsd-uthread.c: All implementations adjusted.
* corelow.c: All implementations adjusted.
* ctf.c: All implementations adjusted.
* darwin-nat.c: All implementations adjusted.
* darwin-nat.h: All implementations adjusted.
* exec.c: All implementations adjusted.
* fbsd-nat.c: All implementations adjusted.
* fbsd-nat.h: All implementations adjusted.
* gnu-nat.c: All implementations adjusted.
* gnu-nat.h: All implementations adjusted.
* go32-nat.c: All implementations adjusted.
* ia64-linux-nat.c: All implementations adjusted.
* inf-child.c: All implementations adjusted.
* inf-child.h: All implementations adjusted.
* inf-ptrace.c: All implementations adjusted.
* inf-ptrace.h: All implementations adjusted.
* linux-nat.c: All implementations adjusted.
* linux-nat.h: All implementations adjusted.
* mips-linux-nat.c: All implementations adjusted.
* nto-procfs.c: All implementations adjusted.
* ppc-linux-nat.c: All implementations adjusted.
* procfs.c: All implementations adjusted.
* ravenscar-thread.c: All implementations adjusted.
* record-btrace.c: All implementations adjusted.
* record-full.c: All implementations adjusted.
* remote-sim.c: All implementations adjusted.
* remote.c: All implementations adjusted.
* s390-linux-nat.c: All implementations adjusted.
* sol-thread.c: All implementations adjusted.
* spu-multiarch.c: All implementations adjusted.
* target-delegates.c: All implementations adjusted.
* target.c: All implementations adjusted.
* target.h: All implementations adjusted.
* tracefile-tfile.c: All implementations adjusted.
* tracefile.c: All implementations adjusted.
* tracefile.h: All implementations adjusted.
* windows-nat.c: All implementations adjusted.
* x86-linux-nat.h: All implementations adjusted.
* x86-nat.h: All implementations adjusted.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 486 |
1 files changed, 243 insertions, 243 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 3aea00e..c06b700 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -24,10 +24,10 @@ struct dummy_target : public target_ops void files_info () override; int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override; int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override; - int stopped_by_sw_breakpoint () override; - int supports_stopped_by_sw_breakpoint () override; - int stopped_by_hw_breakpoint () override; - int supports_stopped_by_hw_breakpoint () override; + bool stopped_by_sw_breakpoint () override; + bool supports_stopped_by_sw_breakpoint () override; + bool stopped_by_hw_breakpoint () override; + bool supports_stopped_by_hw_breakpoint () override; int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override; int ranged_break_num_registers () override; int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override; @@ -36,13 +36,13 @@ struct dummy_target : public target_ops int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override; int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; - int stopped_by_watchpoint () override; + bool stopped_by_watchpoint () override; int have_steppable_watchpoint () override; bool have_continuable_watchpoint () override; - int stopped_data_address (CORE_ADDR *arg0) override; - int watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; + bool stopped_data_address (CORE_ADDR *arg0) override; + bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override; - int can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override; + bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override; int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override; int can_do_single_step () override; bool supports_terminal_ours () override; @@ -67,7 +67,7 @@ struct dummy_target : public target_ops void mourn_inferior () override; void pass_signals (int arg0, unsigned char * arg1) override; void program_signals (int arg0, unsigned char * arg1) override; - int thread_alive (ptid_t arg0) override; + bool thread_alive (ptid_t arg0) override; void update_thread_list () override; const char *pid_to_str (ptid_t arg0) override; const char *extra_thread_info (thread_info *arg0) override; @@ -82,12 +82,12 @@ struct dummy_target : public target_ops struct target_section_table *get_section_table () override; thread_control_capabilities get_thread_control_capabilities () override; bool attach_no_wait () override; - int can_async_p () override; - int is_async_p () override; + bool can_async_p () override; + bool is_async_p () override; void async (int arg0) override; void thread_events (int arg0) override; - int supports_non_stop () override; - int always_non_stop_p () override; + bool supports_non_stop () override; + bool always_non_stop_p () override; int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override; char *make_corefile_notes (bfd *arg0, int *arg1) override; gdb_byte *get_bookmark (const char *arg0, int arg1) override; @@ -102,20 +102,20 @@ struct dummy_target : public target_ops ptid_t get_ada_task_ptid (long arg0, long arg1) override; int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override; int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override; - int can_execute_reverse () override; + bool can_execute_reverse () override; enum exec_direction_kind execution_direction () override; - int supports_multi_process () override; - int supports_enable_disable_tracepoint () override; - int supports_disable_randomization () override; - int supports_string_tracing () override; - int supports_evaluation_of_breakpoint_conditions () override; - int can_run_breakpoint_commands () override; + bool supports_multi_process () override; + bool supports_enable_disable_tracepoint () override; + bool supports_disable_randomization () override; + bool supports_string_tracing () override; + bool supports_evaluation_of_breakpoint_conditions () override; + bool can_run_breakpoint_commands () override; struct gdbarch *thread_architecture (ptid_t arg0) override; struct address_space *thread_address_space (ptid_t arg0) override; - int filesystem_is_local () override; + bool filesystem_is_local () override; void trace_init () override; void download_tracepoint (struct bp_location *arg0) override; - int can_download_tracepoint () override; + bool can_download_tracepoint () override; void download_trace_state_variable (const trace_state_variable &arg0) override; void enable_tracepoint (struct bp_location *arg0) override; void disable_tracepoint (struct bp_location *arg0) override; @@ -125,7 +125,7 @@ struct dummy_target : public target_ops void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override; void trace_stop () override; int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override; - int get_trace_state_variable_value (int arg0, LONGEST *arg1) override; + bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override; int save_trace_data (const char *arg0) override; int upload_tracepoints (struct uploaded_tp **arg0) override; int upload_trace_state_variables (struct uploaded_tsv **arg0) override; @@ -134,16 +134,16 @@ struct dummy_target : public target_ops void set_disconnected_tracing (int arg0) override; void set_circular_trace_buffer (int arg0) override; void set_trace_buffer_size (LONGEST arg0) override; - int set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override; + bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override; int core_of_thread (ptid_t arg0) override; int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override; - int get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override; + bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override; void set_permissions () override; bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override; std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override; traceframe_info_up traceframe_info () override; - int use_agent (int arg0) override; - int can_use_agent () override; + bool use_agent (bool arg0) override; + bool can_use_agent () override; struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override; void disable_btrace (struct btrace_target_info *arg0) override; void teardown_btrace (struct btrace_target_info *arg0) override; @@ -155,8 +155,8 @@ struct dummy_target : public target_ops void save_record (const char *arg0) override; bool supports_delete_record () override; void delete_record () override; - int record_is_replaying (ptid_t arg0) override; - int record_will_replay (ptid_t arg0, int arg1) override; + bool record_is_replaying (ptid_t arg0) override; + bool record_will_replay (ptid_t arg0, int arg1) override; void record_stop_replaying () override; void goto_record_begin () override; void goto_record_end () override; @@ -167,7 +167,7 @@ struct dummy_target : public target_ops void call_history (int arg0, record_print_flags arg1) override; void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override; void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override; - int augmented_libraries_svr4_read () override; + bool augmented_libraries_svr4_read () override; const struct frame_unwind *get_unwinder () override; const struct frame_unwind *get_tailcall_unwinder () override; void prepare_to_generate_core () override; @@ -194,10 +194,10 @@ struct debug_target : public target_ops void files_info () override; int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override; int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override; - int stopped_by_sw_breakpoint () override; - int supports_stopped_by_sw_breakpoint () override; - int stopped_by_hw_breakpoint () override; - int supports_stopped_by_hw_breakpoint () override; + bool stopped_by_sw_breakpoint () override; + bool supports_stopped_by_sw_breakpoint () override; + bool stopped_by_hw_breakpoint () override; + bool supports_stopped_by_hw_breakpoint () override; int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override; int ranged_break_num_registers () override; int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override; @@ -206,13 +206,13 @@ struct debug_target : public target_ops int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override; int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; - int stopped_by_watchpoint () override; + bool stopped_by_watchpoint () override; int have_steppable_watchpoint () override; bool have_continuable_watchpoint () override; - int stopped_data_address (CORE_ADDR *arg0) override; - int watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; + bool stopped_data_address (CORE_ADDR *arg0) override; + bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override; - int can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override; + bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override; int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override; int can_do_single_step () override; bool supports_terminal_ours () override; @@ -237,7 +237,7 @@ struct debug_target : public target_ops void mourn_inferior () override; void pass_signals (int arg0, unsigned char * arg1) override; void program_signals (int arg0, unsigned char * arg1) override; - int thread_alive (ptid_t arg0) override; + bool thread_alive (ptid_t arg0) override; void update_thread_list () override; const char *pid_to_str (ptid_t arg0) override; const char *extra_thread_info (thread_info *arg0) override; @@ -252,12 +252,12 @@ struct debug_target : public target_ops struct target_section_table *get_section_table () override; thread_control_capabilities get_thread_control_capabilities () override; bool attach_no_wait () override; - int can_async_p () override; - int is_async_p () override; + bool can_async_p () override; + bool is_async_p () override; void async (int arg0) override; void thread_events (int arg0) override; - int supports_non_stop () override; - int always_non_stop_p () override; + bool supports_non_stop () override; + bool always_non_stop_p () override; int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override; char *make_corefile_notes (bfd *arg0, int *arg1) override; gdb_byte *get_bookmark (const char *arg0, int arg1) override; @@ -272,20 +272,20 @@ struct debug_target : public target_ops ptid_t get_ada_task_ptid (long arg0, long arg1) override; int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override; int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override; - int can_execute_reverse () override; + bool can_execute_reverse () override; enum exec_direction_kind execution_direction () override; - int supports_multi_process () override; - int supports_enable_disable_tracepoint () override; - int supports_disable_randomization () override; - int supports_string_tracing () override; - int supports_evaluation_of_breakpoint_conditions () override; - int can_run_breakpoint_commands () override; + bool supports_multi_process () override; + bool supports_enable_disable_tracepoint () override; + bool supports_disable_randomization () override; + bool supports_string_tracing () override; + bool supports_evaluation_of_breakpoint_conditions () override; + bool can_run_breakpoint_commands () override; struct gdbarch *thread_architecture (ptid_t arg0) override; struct address_space *thread_address_space (ptid_t arg0) override; - int filesystem_is_local () override; + bool filesystem_is_local () override; void trace_init () override; void download_tracepoint (struct bp_location *arg0) override; - int can_download_tracepoint () override; + bool can_download_tracepoint () override; void download_trace_state_variable (const trace_state_variable &arg0) override; void enable_tracepoint (struct bp_location *arg0) override; void disable_tracepoint (struct bp_location *arg0) override; @@ -295,7 +295,7 @@ struct debug_target : public target_ops void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override; void trace_stop () override; int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override; - int get_trace_state_variable_value (int arg0, LONGEST *arg1) override; + bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override; int save_trace_data (const char *arg0) override; int upload_tracepoints (struct uploaded_tp **arg0) override; int upload_trace_state_variables (struct uploaded_tsv **arg0) override; @@ -304,16 +304,16 @@ struct debug_target : public target_ops void set_disconnected_tracing (int arg0) override; void set_circular_trace_buffer (int arg0) override; void set_trace_buffer_size (LONGEST arg0) override; - int set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override; + bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override; int core_of_thread (ptid_t arg0) override; int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override; - int get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override; + bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override; void set_permissions () override; bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override; std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override; traceframe_info_up traceframe_info () override; - int use_agent (int arg0) override; - int can_use_agent () override; + bool use_agent (bool arg0) override; + bool can_use_agent () override; struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override; void disable_btrace (struct btrace_target_info *arg0) override; void teardown_btrace (struct btrace_target_info *arg0) override; @@ -325,8 +325,8 @@ struct debug_target : public target_ops void save_record (const char *arg0) override; bool supports_delete_record () override; void delete_record () override; - int record_is_replaying (ptid_t arg0) override; - int record_will_replay (ptid_t arg0, int arg1) override; + bool record_is_replaying (ptid_t arg0) override; + bool record_will_replay (ptid_t arg0, int arg1) override; void record_stop_replaying () override; void goto_record_begin () override; void goto_record_end () override; @@ -337,7 +337,7 @@ struct debug_target : public target_ops void call_history (int arg0, record_print_flags arg1) override; void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override; void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override; - int augmented_libraries_svr4_read () override; + bool augmented_libraries_svr4_read () override; const struct frame_unwind *get_unwinder () override; const struct frame_unwind *get_tailcall_unwinder () override; void prepare_to_generate_core () override; @@ -635,102 +635,102 @@ debug_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *ar return result; } -int +bool target_ops::stopped_by_sw_breakpoint () { return this->beneath->stopped_by_sw_breakpoint (); } -int +bool dummy_target::stopped_by_sw_breakpoint () { - return 0; + return false; } -int +bool debug_target::stopped_by_sw_breakpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_sw_breakpoint (...)\n", this->beneath->shortname ()); result = this->beneath->stopped_by_sw_breakpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_sw_breakpoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_stopped_by_sw_breakpoint () { return this->beneath->supports_stopped_by_sw_breakpoint (); } -int +bool dummy_target::supports_stopped_by_sw_breakpoint () { - return 0; + return false; } -int +bool debug_target::supports_stopped_by_sw_breakpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_sw_breakpoint (...)\n", this->beneath->shortname ()); result = this->beneath->supports_stopped_by_sw_breakpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_sw_breakpoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::stopped_by_hw_breakpoint () { return this->beneath->stopped_by_hw_breakpoint (); } -int +bool dummy_target::stopped_by_hw_breakpoint () { - return 0; + return false; } -int +bool debug_target::stopped_by_hw_breakpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_hw_breakpoint (...)\n", this->beneath->shortname ()); result = this->beneath->stopped_by_hw_breakpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_hw_breakpoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_stopped_by_hw_breakpoint () { return this->beneath->supports_stopped_by_hw_breakpoint (); } -int +bool dummy_target::supports_stopped_by_hw_breakpoint () { - return 0; + return false; } -int +bool debug_target::supports_stopped_by_hw_breakpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_hw_breakpoint (...)\n", this->beneath->shortname ()); result = this->beneath->supports_stopped_by_hw_breakpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_hw_breakpoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -970,27 +970,27 @@ debug_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum targe return result; } -int +bool target_ops::stopped_by_watchpoint () { return this->beneath->stopped_by_watchpoint (); } -int +bool dummy_target::stopped_by_watchpoint () { - return 0; + return false; } -int +bool debug_target::stopped_by_watchpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_watchpoint (...)\n", this->beneath->shortname ()); result = this->beneath->stopped_by_watchpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_watchpoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -1004,7 +1004,7 @@ target_ops::have_steppable_watchpoint () int dummy_target::have_steppable_watchpoint () { - return 0; + return false; } int @@ -1029,7 +1029,7 @@ target_ops::have_continuable_watchpoint () bool dummy_target::have_continuable_watchpoint () { - return 0; + return false; } bool @@ -1045,48 +1045,48 @@ debug_target::have_continuable_watchpoint () return result; } -int +bool target_ops::stopped_data_address (CORE_ADDR *arg0) { return this->beneath->stopped_data_address (arg0); } -int +bool dummy_target::stopped_data_address (CORE_ADDR *arg0) { - return 0; + return false; } -int +bool debug_target::stopped_data_address (CORE_ADDR *arg0) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_data_address (...)\n", this->beneath->shortname ()); result = this->beneath->stopped_data_address (arg0); fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_data_address (", this->beneath->shortname ()); target_debug_print_CORE_ADDR_p (arg0); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) { return this->beneath->watchpoint_addr_within_range (arg0, arg1, arg2); } -int +bool dummy_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) { return default_watchpoint_addr_within_range (this, arg0, arg1, arg2); } -int +bool debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath->shortname ()); result = this->beneath->watchpoint_addr_within_range (arg0, arg1, arg2); fprintf_unfiltered (gdb_stdlog, "<- %s->watchpoint_addr_within_range (", this->beneath->shortname ()); @@ -1096,7 +1096,7 @@ debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int fputs_unfiltered (", ", gdb_stdlog); target_debug_print_int (arg2); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -1129,22 +1129,22 @@ debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) return result; } -int +bool target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) { return this->beneath->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3); } -int +bool dummy_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) { - return 0; + return false; } -int +bool debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath->shortname ()); result = this->beneath->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3); fprintf_unfiltered (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath->shortname ()); @@ -1156,7 +1156,7 @@ debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2 fputs_unfiltered (", ", gdb_stdlog); target_debug_print_struct_expression_p (arg3); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -1223,7 +1223,7 @@ target_ops::supports_terminal_ours () bool dummy_target::supports_terminal_ours () { - return 0; + return false; } bool @@ -1735,28 +1735,28 @@ debug_target::program_signals (int arg0, unsigned char * arg1) fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::thread_alive (ptid_t arg0) { return this->beneath->thread_alive (arg0); } -int +bool dummy_target::thread_alive (ptid_t arg0) { - return 0; + return false; } -int +bool debug_target::thread_alive (ptid_t arg0) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->thread_alive (...)\n", this->beneath->shortname ()); result = this->beneath->thread_alive (arg0); fprintf_unfiltered (gdb_stdlog, "<- %s->thread_alive (", this->beneath->shortname ()); target_debug_print_ptid_t (arg0); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2097,52 +2097,52 @@ debug_target::attach_no_wait () return result; } -int +bool target_ops::can_async_p () { return this->beneath->can_async_p (); } -int +bool dummy_target::can_async_p () { - return 0; + return false; } -int +bool debug_target::can_async_p () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_async_p (...)\n", this->beneath->shortname ()); result = this->beneath->can_async_p (); fprintf_unfiltered (gdb_stdlog, "<- %s->can_async_p (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::is_async_p () { return this->beneath->is_async_p (); } -int +bool dummy_target::is_async_p () { - return 0; + return false; } -int +bool debug_target::is_async_p () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->is_async_p (...)\n", this->beneath->shortname ()); result = this->beneath->is_async_p (); fprintf_unfiltered (gdb_stdlog, "<- %s->is_async_p (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2190,52 +2190,52 @@ debug_target::thread_events (int arg0) fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::supports_non_stop () { return this->beneath->supports_non_stop (); } -int +bool dummy_target::supports_non_stop () { - return 0; + return false; } -int +bool debug_target::supports_non_stop () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_non_stop (...)\n", this->beneath->shortname ()); result = this->beneath->supports_non_stop (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_non_stop (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::always_non_stop_p () { return this->beneath->always_non_stop_p (); } -int +bool dummy_target::always_non_stop_p () { - return 0; + return false; } -int +bool debug_target::always_non_stop_p () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->always_non_stop_p (...)\n", this->beneath->shortname ()); result = this->beneath->always_non_stop_p (); fprintf_unfiltered (gdb_stdlog, "<- %s->always_non_stop_p (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2630,27 +2630,27 @@ debug_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2 return result; } -int +bool target_ops::can_execute_reverse () { return this->beneath->can_execute_reverse (); } -int +bool dummy_target::can_execute_reverse () { - return 0; + return false; } -int +bool debug_target::can_execute_reverse () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_execute_reverse (...)\n", this->beneath->shortname ()); result = this->beneath->can_execute_reverse (); fprintf_unfiltered (gdb_stdlog, "<- %s->can_execute_reverse (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2680,152 +2680,152 @@ debug_target::execution_direction () return result; } -int +bool target_ops::supports_multi_process () { return this->beneath->supports_multi_process (); } -int +bool dummy_target::supports_multi_process () { - return 0; + return false; } -int +bool debug_target::supports_multi_process () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_multi_process (...)\n", this->beneath->shortname ()); result = this->beneath->supports_multi_process (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_multi_process (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_enable_disable_tracepoint () { return this->beneath->supports_enable_disable_tracepoint (); } -int +bool dummy_target::supports_enable_disable_tracepoint () { - return 0; + return false; } -int +bool debug_target::supports_enable_disable_tracepoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_enable_disable_tracepoint (...)\n", this->beneath->shortname ()); result = this->beneath->supports_enable_disable_tracepoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_enable_disable_tracepoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_disable_randomization () { return this->beneath->supports_disable_randomization (); } -int +bool dummy_target::supports_disable_randomization () { return find_default_supports_disable_randomization (this); } -int +bool debug_target::supports_disable_randomization () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_disable_randomization (...)\n", this->beneath->shortname ()); result = this->beneath->supports_disable_randomization (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_disable_randomization (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_string_tracing () { return this->beneath->supports_string_tracing (); } -int +bool dummy_target::supports_string_tracing () { - return 0; + return false; } -int +bool debug_target::supports_string_tracing () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_string_tracing (...)\n", this->beneath->shortname ()); result = this->beneath->supports_string_tracing (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_string_tracing (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::supports_evaluation_of_breakpoint_conditions () { return this->beneath->supports_evaluation_of_breakpoint_conditions (); } -int +bool dummy_target::supports_evaluation_of_breakpoint_conditions () { - return 0; + return false; } -int +bool debug_target::supports_evaluation_of_breakpoint_conditions () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->supports_evaluation_of_breakpoint_conditions (...)\n", this->beneath->shortname ()); result = this->beneath->supports_evaluation_of_breakpoint_conditions (); fprintf_unfiltered (gdb_stdlog, "<- %s->supports_evaluation_of_breakpoint_conditions (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::can_run_breakpoint_commands () { return this->beneath->can_run_breakpoint_commands (); } -int +bool dummy_target::can_run_breakpoint_commands () { - return 0; + return false; } -int +bool debug_target::can_run_breakpoint_commands () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_run_breakpoint_commands (...)\n", this->beneath->shortname ()); result = this->beneath->can_run_breakpoint_commands (); fprintf_unfiltered (gdb_stdlog, "<- %s->can_run_breakpoint_commands (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2882,27 +2882,27 @@ debug_target::thread_address_space (ptid_t arg0) return result; } -int +bool target_ops::filesystem_is_local () { return this->beneath->filesystem_is_local (); } -int +bool dummy_target::filesystem_is_local () { - return 1; + return true; } -int +bool debug_target::filesystem_is_local () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->filesystem_is_local (...)\n", this->beneath->shortname ()); result = this->beneath->filesystem_is_local (); fprintf_unfiltered (gdb_stdlog, "<- %s->filesystem_is_local (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -2950,27 +2950,27 @@ debug_target::download_tracepoint (struct bp_location *arg0) fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::can_download_tracepoint () { return this->beneath->can_download_tracepoint (); } -int +bool dummy_target::can_download_tracepoint () { - return 0; + return false; } -int +bool debug_target::can_download_tracepoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_download_tracepoint (...)\n", this->beneath->shortname ()); result = this->beneath->can_download_tracepoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->can_download_tracepoint (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -3188,22 +3188,22 @@ debug_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, C return result; } -int +bool target_ops::get_trace_state_variable_value (int arg0, LONGEST *arg1) { return this->beneath->get_trace_state_variable_value (arg0, arg1); } -int +bool dummy_target::get_trace_state_variable_value (int arg0, LONGEST *arg1) { - return 0; + return false; } -int +bool debug_target::get_trace_state_variable_value (int arg0, LONGEST *arg1) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->get_trace_state_variable_value (...)\n", this->beneath->shortname ()); result = this->beneath->get_trace_state_variable_value (arg0, arg1); fprintf_unfiltered (gdb_stdlog, "<- %s->get_trace_state_variable_value (", this->beneath->shortname ()); @@ -3211,7 +3211,7 @@ debug_target::get_trace_state_variable_value (int arg0, LONGEST *arg1) fputs_unfiltered (", ", gdb_stdlog); target_debug_print_LONGEST_p (arg1); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -3412,22 +3412,22 @@ debug_target::set_trace_buffer_size (LONGEST arg0) fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::set_trace_notes (const char *arg0, const char *arg1, const char *arg2) { return this->beneath->set_trace_notes (arg0, arg1, arg2); } -int +bool dummy_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2) { - return 0; + return false; } -int +bool debug_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->set_trace_notes (...)\n", this->beneath->shortname ()); result = this->beneath->set_trace_notes (arg0, arg1, arg2); fprintf_unfiltered (gdb_stdlog, "<- %s->set_trace_notes (", this->beneath->shortname ()); @@ -3437,7 +3437,7 @@ debug_target::set_trace_notes (const char *arg0, const char *arg1, const char *a fputs_unfiltered (", ", gdb_stdlog); target_debug_print_const_char_p (arg2); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -3498,22 +3498,22 @@ debug_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2 return result; } -int +bool target_ops::get_tib_address (ptid_t arg0, CORE_ADDR *arg1) { return this->beneath->get_tib_address (arg0, arg1); } -int +bool dummy_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1) { tcomplain (); } -int +bool debug_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->get_tib_address (...)\n", this->beneath->shortname ()); result = this->beneath->get_tib_address (arg0, arg1); fprintf_unfiltered (gdb_stdlog, "<- %s->get_tib_address (", this->beneath->shortname ()); @@ -3521,7 +3521,7 @@ debug_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1) fputs_unfiltered (", ", gdb_stdlog); target_debug_print_CORE_ADDR_p (arg1); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -3625,53 +3625,53 @@ debug_target::traceframe_info () return result; } -int -target_ops::use_agent (int arg0) +bool +target_ops::use_agent (bool arg0) { return this->beneath->use_agent (arg0); } -int -dummy_target::use_agent (int arg0) +bool +dummy_target::use_agent (bool arg0) { tcomplain (); } -int -debug_target::use_agent (int arg0) +bool +debug_target::use_agent (bool arg0) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->use_agent (...)\n", this->beneath->shortname ()); result = this->beneath->use_agent (arg0); fprintf_unfiltered (gdb_stdlog, "<- %s->use_agent (", this->beneath->shortname ()); - target_debug_print_int (arg0); + target_debug_print_bool (arg0); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::can_use_agent () { return this->beneath->can_use_agent (); } -int +bool dummy_target::can_use_agent () { - return 0; + return false; } -int +bool debug_target::can_use_agent () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->can_use_agent (...)\n", this->beneath->shortname ()); result = this->beneath->can_use_agent (); fprintf_unfiltered (gdb_stdlog, "<- %s->can_use_agent (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -3938,48 +3938,48 @@ debug_target::delete_record () fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::record_is_replaying (ptid_t arg0) { return this->beneath->record_is_replaying (arg0); } -int +bool dummy_target::record_is_replaying (ptid_t arg0) { - return 0; + return false; } -int +bool debug_target::record_is_replaying (ptid_t arg0) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->record_is_replaying (...)\n", this->beneath->shortname ()); result = this->beneath->record_is_replaying (arg0); fprintf_unfiltered (gdb_stdlog, "<- %s->record_is_replaying (", this->beneath->shortname ()); target_debug_print_ptid_t (arg0); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } -int +bool target_ops::record_will_replay (ptid_t arg0, int arg1) { return this->beneath->record_will_replay (arg0, arg1); } -int +bool dummy_target::record_will_replay (ptid_t arg0, int arg1) { - return 0; + return false; } -int +bool debug_target::record_will_replay (ptid_t arg0, int arg1) { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->record_will_replay (...)\n", this->beneath->shortname ()); result = this->beneath->record_will_replay (arg0, arg1); fprintf_unfiltered (gdb_stdlog, "<- %s->record_will_replay (", this->beneath->shortname ()); @@ -3987,7 +3987,7 @@ debug_target::record_will_replay (ptid_t arg0, int arg1) fputs_unfiltered (", ", gdb_stdlog); target_debug_print_int (arg1); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } @@ -4228,27 +4228,27 @@ debug_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_fla fputs_unfiltered (")\n", gdb_stdlog); } -int +bool target_ops::augmented_libraries_svr4_read () { return this->beneath->augmented_libraries_svr4_read (); } -int +bool dummy_target::augmented_libraries_svr4_read () { - return 0; + return false; } -int +bool debug_target::augmented_libraries_svr4_read () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->augmented_libraries_svr4_read (...)\n", this->beneath->shortname ()); result = this->beneath->augmented_libraries_svr4_read (); fprintf_unfiltered (gdb_stdlog, "<- %s->augmented_libraries_svr4_read (", this->beneath->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } |