From: H.J. Lu Date: Wed, 3 Feb 2010 18:30:04 +0000 (+0000) Subject: Pass target_gdbarch to gdbarch_qsupported. X-Git-Tag: gdb_7_1-branchpoint~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff97be0688bc838579e24b170efadc54a28ed8f6;p=thirdparty%2Fbinutils-gdb.git Pass target_gdbarch to gdbarch_qsupported. 2010-02-03 H.J. Lu * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index af536a75d87..ade4aa02c78 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2010-02-03 H.J. Lu + + * 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 * gdbarch.sh: Add qsupported. diff --git a/gdb/remote.c b/gdb/remote.c index 2c3dfdb600d..709e424ac27 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;