diff options
author | Pedro Alves <palves@redhat.com> | 2009-02-05 23:30:33 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-02-05 23:30:33 +0000 |
commit | 611041afff08723894c70dddaf8a316904daa723 (patch) | |
tree | 515a80594cf1f6b27e42026c21b4dab0023e8b95 | |
parent | 95027438a77ca4693cad270396c8ab30fccb5e52 (diff) | |
download | gdb-611041afff08723894c70dddaf8a316904daa723.zip gdb-611041afff08723894c70dddaf8a316904daa723.tar.gz gdb-611041afff08723894c70dddaf8a316904daa723.tar.bz2 |
* target.h (target_stopped_data_address_p): Delete declaration,
and don't define as macro.
* target.c (target_stopped_data_address_p): Delete.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/target.c | 15 | ||||
-rw-r--r-- | gdb/target.h | 5 |
3 files changed, 6 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e910679..a57e5d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-02-05 Pedro Alves <pedro@codesourcery.com> + + * target.h (target_stopped_data_address_p): Delete declaration, + and don't define as macro. + * target.c (target_stopped_data_address_p): Delete. + 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> Tom Tromey <tromey@redhat.com> diff --git a/gdb/target.c b/gdb/target.c index a289e89..d788c26 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1353,21 +1353,6 @@ target_flash_done (void) tcomplain (); } -#ifndef target_stopped_data_address_p -int -target_stopped_data_address_p (struct target_ops *target) -{ - if (target->to_stopped_data_address - == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero) - return 0; - if (target->to_stopped_data_address == debug_to_stopped_data_address - && (debug_target.to_stopped_data_address - == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero)) - return 0; - return 1; -} -#endif - static void show_trust_readonly (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) diff --git a/gdb/target.h b/gdb/target.h index 5b5fa5e..8e0f6c5 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1129,14 +1129,9 @@ extern char *normal_pid_to_str (ptid_t ptid); (*current_target.to_remove_hw_breakpoint) (bp_tgt) #endif -extern int target_stopped_data_address_p (struct target_ops *); - #ifndef target_stopped_data_address #define target_stopped_data_address(target, x) \ (*target.to_stopped_data_address) (target, x) -#else -/* Horrible hack to get around existing macros :-(. */ -#define target_stopped_data_address_p(CURRENT_TARGET) (1) #endif #define target_watchpoint_addr_within_range(target, addr, start, length) \ |