aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-02-03 18:30:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-02-03 18:30:04 +0000
commitff97be0688bc838579e24b170efadc54a28ed8f6 (patch)
treee461b4da2a1f1930925e74312897031fc634a35f /gdb
parent3327ccf79527582eefb7369281ccc1ecb7b268db (diff)
downloadgdb-ff97be0688bc838579e24b170efadc54a28ed8f6.zip
gdb-ff97be0688bc838579e24b170efadc54a28ed8f6.tar.gz
gdb-ff97be0688bc838579e24b170efadc54a28ed8f6.tar.bz2
Pass target_gdbarch to gdbarch_qsupported.
2010-02-03 H.J. Lu <hongjiu.lu@intel.com> * remote.c (remote_state): Remove gdbarch. (init_remote_state): Don't set gdbarch. (remote_query_supported): Pass target_gdbarch instead of rs->gdbarch to gdbarch_qsupported.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/remote.c8
2 files changed, 8 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index af536a7..ade4aa0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
+ * remote.c (remote_state): Remove gdbarch.
+ (init_remote_state): Don't set gdbarch.
+ (remote_query_supported): Pass target_gdbarch instead of
+ rs->gdbarch to gdbarch_qsupported.
+
+2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
+
* gdbarch.sh: Add qsupported.
* gdbarch.c: Regenerated.
diff --git a/gdb/remote.c b/gdb/remote.c
index 2c3dfdb..709e424 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -327,9 +327,6 @@ struct remote_state
/* Nonzero if the user has pressed Ctrl-C, but the target hasn't
responded to that. */
int ctrlc_pending_p;
-
- /* GDBARCH associated with this target. */
- struct gdbarch *gdbarch;
};
/* Private data that we'll store in (struct thread_info)->private. */
@@ -569,9 +566,6 @@ init_remote_state (struct gdbarch *gdbarch)
rs->buf = xrealloc (rs->buf, rs->buf_size);
}
- /* Record our GDBARCH. */
- rs->gdbarch = gdbarch;
-
return rsa;
}
@@ -3481,7 +3475,7 @@ remote_query_supported (void)
rs->buf[0] = 0;
if (remote_protocol_packets[PACKET_qSupported].support != PACKET_DISABLE)
{
- const char *qsupported = gdbarch_qsupported (rs->gdbarch);
+ const char *qsupported = gdbarch_qsupported (target_gdbarch);
if (qsupported)
{
char *q;