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.
This commit is contained in:
H.J. Lu 2010-02-03 18:30:04 +00:00
parent 3327ccf795
commit ff97be0688
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -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;