aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-07-17 00:27:28 +0000
committerAndrew Cagney <cagney@redhat.com>2001-07-17 00:27:28 +0000
commit0caabb7ecb1e9f7fba6586dc895e8e96728a7aca (patch)
tree0ae1d9d5e1c1f8fc7d4762f6d46abaca7399d568 /gdb
parentb69e2f0e64844232a10e43dcbb3dc2af94a75291 (diff)
downloadgdb-0caabb7ecb1e9f7fba6586dc895e8e96728a7aca.zip
gdb-0caabb7ecb1e9f7fba6586dc895e8e96728a7aca.tar.gz
gdb-0caabb7ecb1e9f7fba6586dc895e8e96728a7aca.tar.bz2
Revert previous, included more than intended.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/remote.c28
2 files changed, 13 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4dbdd32..9bb72d3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-16 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c: Revert below. Included more than intended.
+
2001-07-16 Nick Duffek <nsd@redhat.com>
* remote.c (init_remote_ops, init_remote_cisco_ops,
diff --git a/gdb/remote.c b/gdb/remote.c
index 9ddce8f..e6c3c91 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4513,17 +4513,13 @@ remote_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
char *buf = alloca (PBUFSIZ);
char *p = buf;
- CORE_ADDR addr2;
- addr2 = remote_address_masked (addr);
- if (ADJUST_REMOTE_Z_BREAKPOINT_P ())
- ADJUST_REMOTE_Z_BREAKPOINT (&addr2);
-
+ addr = remote_address_masked (addr);
*(p++) = 'Z';
*(p++) = '0';
*(p++) = ',';
- p += hexnumstr (p, (ULONGEST) addr2);
- BREAKPOINT_FROM_PC (&addr2, &bp_size);
+ p += hexnumstr (p, (ULONGEST) addr);
+ BREAKPOINT_FROM_PC (&addr, &bp_size);
sprintf (p, ",%d", bp_size);
putpkt (buf);
@@ -4568,18 +4564,14 @@ remote_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
char *buf = alloca (PBUFSIZ);
char *p = buf;
- CORE_ADDR addr2;
*(p++) = 'z';
*(p++) = '0';
*(p++) = ',';
- addr2 = remote_address_masked (addr);
- if (ADJUST_REMOTE_Z_BREAKPOINT_P ())
- ADJUST_REMOTE_Z_BREAKPOINT (&addr2);
-
- p += hexnumstr (p, (ULONGEST) addr2);
- BREAKPOINT_FROM_PC (&addr2, &bp_size);
+ addr = remote_address_masked (addr);
+ p += hexnumstr (p, (ULONGEST) addr);
+ BREAKPOINT_FROM_PC (&addr, &bp_size);
sprintf (p, ",%d", bp_size);
putpkt (buf);
@@ -5235,8 +5227,8 @@ Specify the serial device it is connected to\n\
remote_ops.to_mourn_inferior = remote_mourn;
remote_ops.to_thread_alive = remote_thread_alive;
remote_ops.to_find_new_threads = remote_threads_info;
- remote_ops.to_pid_to_str = remote_pid_to_str;
remote_ops.to_extra_thread_info = remote_threads_extra_info;
+ remote_ops.to_pid_to_str = remote_pid_to_str;
remote_ops.to_stop = remote_stop;
remote_ops.to_query = remote_query;
remote_ops.to_rcmd = remote_rcmd;
@@ -5644,8 +5636,7 @@ Specify the serial device it is connected to (e.g. host:2020).";
remote_cisco_ops.to_mourn_inferior = remote_cisco_mourn;
remote_cisco_ops.to_thread_alive = remote_thread_alive;
remote_cisco_ops.to_find_new_threads = remote_threads_info;
- remote_cisco_ops.to_pid_to_str = remote_pid_to_str;
- remote_cisco_ops.to_extra_thread_info = remote_threads_extra_info;
+ remote_ops.to_extra_thread_info = remote_threads_extra_info;
remote_cisco_ops.to_stratum = process_stratum;
remote_cisco_ops.to_has_all_memory = 1;
remote_cisco_ops.to_has_memory = 1;
@@ -5735,8 +5726,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
remote_async_ops.to_mourn_inferior = remote_async_mourn;
remote_async_ops.to_thread_alive = remote_thread_alive;
remote_async_ops.to_find_new_threads = remote_threads_info;
- remote_async_ops.to_pid_to_str = remote_pid_to_str;
- remote_async_ops.to_extra_thread_info = remote_threads_extra_info;
+ remote_ops.to_extra_thread_info = remote_threads_extra_info;
remote_async_ops.to_stop = remote_stop;
remote_async_ops.to_query = remote_query;
remote_async_ops.to_rcmd = remote_rcmd;